Text Compare
Produced: 7/19/2015 1:54:04 PM
   
Mode:  All, With Context  
Left file: C:\mksong\workspace_genproglase\genproglase-output-r1658\template09\0718-1345\libtiff-bug-2009-06-30-b44af47-e0b51f3\sanity\tools\tiffcp.c  
Right file: C:\mksong\workspace_genproglase\genproglase-output-r1658\template09\0718-1345\libtiff-bug-2009-06-30-b44af47-e0b51f3\000000\tools\tiffcp.c  
1 typedef unsigned int size_t; = 1 typedef unsigned int size_t;
2 typedef unsigned char __u_char;   2 typedef unsigned char __u_char;
3 typedef unsigned short __u_short;   3 typedef unsigned short __u_short;
4 typedef unsigned int __u_int;   4 typedef unsigned int __u_int;
5 typedef unsigned long __u_long;   5 typedef unsigned long __u_long;
6 typedef signed char __int8_t;   6 typedef signed char __int8_t;
7 typedef unsigned char __uint8_t;   7 typedef unsigned char __uint8_t;
8 typedef short __int16_t;   8 typedef short __int16_t;
9 typedef unsigned short __uint16_t;   9 typedef unsigned short __uint16_t;
10 typedef int __int32_t;   10 typedef int __int32_t;
11 typedef unsigned int __uint32_t;   11 typedef unsigned int __uint32_t;
12 typedef long long __int64_t;   12 typedef long long __int64_t;
13 typedef unsigned long long __uint64_t;   13 typedef unsigned long long __uint64_t;
14 typedef long long __quad_t;   14 typedef long long __quad_t;
15 typedef unsigned long long __u_quad_t;   15 typedef unsigned long long __u_quad_t;
16 typedef __u_quad_t __dev_t;   16 typedef __u_quad_t __dev_t;
17 typedef unsigned int __uid_t;   17 typedef unsigned int __uid_t;
18 typedef unsigned int __gid_t;   18 typedef unsigned int __gid_t;
19 typedef unsigned long __ino_t;   19 typedef unsigned long __ino_t;
20 typedef __u_quad_t __ino64_t;   20 typedef __u_quad_t __ino64_t;
21 typedef unsigned int __mode_t;   21 typedef unsigned int __mode_t;
22 typedef unsigned int __nlink_t;   22 typedef unsigned int __nlink_t;
23 typedef long __off_t;   23 typedef long __off_t;
24 typedef __quad_t __off64_t;   24 typedef __quad_t __off64_t;
25 typedef int __pid_t;   25 typedef int __pid_t;
26 struct __anonstruct___fsid_t_1 {   26 struct __anonstruct___fsid_t_1 {
27    int __val[2] ;   27    int __val[2] ;
28 };   28 };
29 typedef struct __anonstruct___fsid_t_1 __fsid_t;   29 typedef struct __anonstruct___fsid_t_1 __fsid_t;
30 typedef long __clock_t;   30 typedef long __clock_t;
31 typedef unsigned long __rlim_t;   31 typedef unsigned long __rlim_t;
32 typedef __u_quad_t __rlim64_t;   32 typedef __u_quad_t __rlim64_t;
33 typedef unsigned int __id_t;   33 typedef unsigned int __id_t;
34 typedef long __time_t;   34 typedef long __time_t;
35 typedef unsigned int __useconds_t;   35 typedef unsigned int __useconds_t;
36 typedef long __suseconds_t;   36 typedef long __suseconds_t;
37 typedef int __daddr_t;   37 typedef int __daddr_t;
38 typedef long __swblk_t;   38 typedef long __swblk_t;
39 typedef int __key_t;   39 typedef int __key_t;
40 typedef int __clockid_t;   40 typedef int __clockid_t;
41 typedef void *__timer_t;   41 typedef void *__timer_t;
42 typedef long __blksize_t;   42 typedef long __blksize_t;
43 typedef long __blkcnt_t;   43 typedef long __blkcnt_t;
44 typedef __quad_t __blkcnt64_t;   44 typedef __quad_t __blkcnt64_t;
45 typedef unsigned long __fsblkcnt_t;   45 typedef unsigned long __fsblkcnt_t;
46 typedef __u_quad_t __fsblkcnt64_t;   46 typedef __u_quad_t __fsblkcnt64_t;
47 typedef unsigned long __fsfilcnt_t;   47 typedef unsigned long __fsfilcnt_t;
48 typedef __u_quad_t __fsfilcnt64_t;   48 typedef __u_quad_t __fsfilcnt64_t;
49 typedef int __ssize_t;   49 typedef int __ssize_t;
50 typedef __off64_t __loff_t;   50 typedef __off64_t __loff_t;
51 typedef __quad_t *__qaddr_t;   51 typedef __quad_t *__qaddr_t;
52 typedef char *__caddr_t;   52 typedef char *__caddr_t;
53 typedef int __intptr_t;   53 typedef int __intptr_t;
54 typedef unsigned int __socklen_t;   54 typedef unsigned int __socklen_t;
55 struct _IO_FILE;   55 struct _IO_FILE;
56 struct _IO_FILE;   56 struct _IO_FILE;
57 typedef struct _IO_FILE FILE;   57 typedef struct _IO_FILE FILE;
58 typedef struct _IO_FILE __FILE;   58 typedef struct _IO_FILE __FILE;
59 union __anonunion___value_3 {   59 union __anonunion___value_3 {
60    unsigned int __wch ;   60    unsigned int __wch ;
61    char __wchb[4] ;   61    char __wchb[4] ;
62 };   62 };
63 struct __anonstruct___mbstate_t_2 {   63 struct __anonstruct___mbstate_t_2 {
64    int __count ;   64    int __count ;
65    union __anonunion___value_3 __value ;   65    union __anonunion___value_3 __value ;
66 };   66 };
67 typedef struct __anonstruct___mbstate_t_2 __mbstate_t;   67 typedef struct __anonstruct___mbstate_t_2 __mbstate_t;
68 struct __anonstruct__G_fpos_t_4 {   68 struct __anonstruct__G_fpos_t_4 {
69    __off_t __pos ;   69    __off_t __pos ;
70    __mbstate_t __state ;   70    __mbstate_t __state ;
71 };   71 };
72 typedef struct __anonstruct__G_fpos_t_4 _G_fpos_t;   72 typedef struct __anonstruct__G_fpos_t_4 _G_fpos_t;
73 struct __anonstruct__G_fpos64_t_5 {   73 struct __anonstruct__G_fpos64_t_5 {
74    __off64_t __pos ;   74    __off64_t __pos ;
75    __mbstate_t __state ;   75    __mbstate_t __state ;
76 };   76 };
77 typedef struct __anonstruct__G_fpos64_t_5 _G_fpos64_t;   77 typedef struct __anonstruct__G_fpos64_t_5 _G_fpos64_t;
78 typedef short _G_int16_t;   78 typedef short _G_int16_t;
79 typedef int _G_int32_t;   79 typedef int _G_int32_t;
80 typedef unsigned short _G_uint16_t;   80 typedef unsigned short _G_uint16_t;
81 typedef unsigned int _G_uint32_t;   81 typedef unsigned int _G_uint32_t;
82 typedef __builtin_va_list __gnuc_va_list;   82 typedef __builtin_va_list __gnuc_va_list;
83 struct _IO_jump_t;   83 struct _IO_jump_t;
84 struct _IO_jump_t;   84 struct _IO_jump_t;
85 struct _IO_FILE;   85 struct _IO_FILE;
86 typedef void _IO_lock_t;   86 typedef void _IO_lock_t;
87 struct _IO_marker {   87 struct _IO_marker {
88    struct _IO_marker *_next ;   88    struct _IO_marker *_next ;
89    struct _IO_FILE *_sbuf ;   89    struct _IO_FILE *_sbuf ;
90    int _pos ;   90    int _pos ;
91 };   91 };
92 enum __codecvt_result {   92 enum __codecvt_result {
93     __codecvt_ok = 0,   93     __codecvt_ok = 0,
94     __codecvt_partial = 1,   94     __codecvt_partial = 1,
95     __codecvt_error = 2,   95     __codecvt_error = 2,
96     __codecvt_noconv = 3   96     __codecvt_noconv = 3
97 } ;   97 } ;
98 struct _IO_FILE {   98 struct _IO_FILE {
99    int _flags ;   99    int _flags ;
100    char *_IO_read_ptr ;   100    char *_IO_read_ptr ;
101    char *_IO_read_end ;   101    char *_IO_read_end ;
102    char *_IO_read_base ;   102    char *_IO_read_base ;
103    char *_IO_write_base ;   103    char *_IO_write_base ;
104    char *_IO_write_ptr ;   104    char *_IO_write_ptr ;
105    char *_IO_write_end ;   105    char *_IO_write_end ;
106    char *_IO_buf_base ;   106    char *_IO_buf_base ;
107    char *_IO_buf_end ;   107    char *_IO_buf_end ;
108    char *_IO_save_base ;   108    char *_IO_save_base ;
109    char *_IO_backup_base ;   109    char *_IO_backup_base ;
110    char *_IO_save_end ;   110    char *_IO_save_end ;
111    struct _IO_marker *_markers ;   111    struct _IO_marker *_markers ;
112    struct _IO_FILE *_chain ;   112    struct _IO_FILE *_chain ;
113    int _fileno ;   113    int _fileno ;
114    int _flags2 ;   114    int _flags2 ;
115    __off_t _old_offset ;   115    __off_t _old_offset ;
116    unsigned short _cur_column ;   116    unsigned short _cur_column ;
117    signed char _vtable_offset ;   117    signed char _vtable_offset ;
118    char _shortbuf[1] ;   118    char _shortbuf[1] ;
119    _IO_lock_t *_lock ;   119    _IO_lock_t *_lock ;
120    __off64_t _offset ;   120    __off64_t _offset ;
121    void *__pad1 ;   121    void *__pad1 ;
122    void *__pad2 ;   122    void *__pad2 ;
123    void *__pad3 ;   123    void *__pad3 ;
124    void *__pad4 ;   124    void *__pad4 ;
125    size_t __pad5 ;   125    size_t __pad5 ;
126    int _mode ;   126    int _mode ;
127    char _unused2[(15U * sizeof(int ) - 4U * sizeof(void *)) - sizeof(size_t )] ;   127    char _unused2[(15U * sizeof(int ) - 4U * sizeof(void *)) - sizeof(size_t )] ;
128 };   128 };
129 typedef struct _IO_FILE _IO_FILE;   129 typedef struct _IO_FILE _IO_FILE;
130 struct _IO_FILE_plus;   130 struct _IO_FILE_plus;
131 struct _IO_FILE_plus;   131 struct _IO_FILE_plus;
132 typedef __ssize_t __io_read_fn(void *__cookie , char *__buf , size_t __nbytes );   132 typedef __ssize_t __io_read_fn(void *__cookie , char *__buf , size_t __nbytes );
133 typedef __ssize_t __io_write_fn(void *__cookie , char const   *__buf ,   133 typedef __ssize_t __io_write_fn(void *__cookie , char const   *__buf ,
134                                 size_t __n );   134                                 size_t __n );
135 typedef int __io_seek_fn(void *__cookie , __off64_t *__pos , int __w );   135 typedef int __io_seek_fn(void *__cookie , __off64_t *__pos , int __w );
136 typedef int __io_close_fn(void *__cookie );   136 typedef int __io_close_fn(void *__cookie );
137 typedef __gnuc_va_list va_list;   137 typedef __gnuc_va_list va_list;
138 typedef __off64_t off_t;   138 typedef __off64_t off_t;
139 typedef __ssize_t ssize_t;   139 typedef __ssize_t ssize_t;
140 typedef _G_fpos64_t fpos_t;   140 typedef _G_fpos64_t fpos_t;
141 typedef long wchar_t;   141 typedef long wchar_t;
142 struct __anonstruct___wait_terminated_6 {   142 struct __anonstruct___wait_terminated_6 {
143    unsigned int __w_termsig : 7 ;   143    unsigned int __w_termsig : 7 ;
144    unsigned int __w_coredump : 1 ;   144    unsigned int __w_coredump : 1 ;
145    unsigned int __w_retcode : 8 ;   145    unsigned int __w_retcode : 8 ;
146    unsigned int  : 16 ;   146    unsigned int  : 16 ;
147 };   147 };
148 struct __anonstruct___wait_stopped_7 {   148 struct __anonstruct___wait_stopped_7 {
149    unsigned int __w_stopval : 8 ;   149    unsigned int __w_stopval : 8 ;
150    unsigned int __w_stopsig : 8 ;   150    unsigned int __w_stopsig : 8 ;
151    unsigned int  : 16 ;   151    unsigned int  : 16 ;
152 };   152 };
153 union wait {   153 union wait {
154    int w_status ;   154    int w_status ;
155    struct __anonstruct___wait_terminated_6 __wait_terminated ;   155    struct __anonstruct___wait_terminated_6 __wait_terminated ;
156    struct __anonstruct___wait_stopped_7 __wait_stopped ;   156    struct __anonstruct___wait_stopped_7 __wait_stopped ;
157 };   157 };
158 union __anonunion___WAIT_STATUS_8 {   158 union __anonunion___WAIT_STATUS_8 {
159    union wait *__uptr ;   159    union wait *__uptr ;
160    int *__iptr ;   160    int *__iptr ;
161 };   161 };
162 typedef union __anonunion___WAIT_STATUS_8  __attribute__((__transparent_union__)) __WAIT_STATUS;   162 typedef union __anonunion___WAIT_STATUS_8  __attribute__((__transparent_union__)) __WAIT_STATUS;
163 struct __anonstruct_div_t_9 {   163 struct __anonstruct_div_t_9 {
164    int quot ;   164    int quot ;
165    int rem ;   165    int rem ;
166 };   166 };
167 typedef struct __anonstruct_div_t_9 div_t;   167 typedef struct __anonstruct_div_t_9 div_t;
168 struct __anonstruct_ldiv_t_10 {   168 struct __anonstruct_ldiv_t_10 {
169    long quot ;   169    long quot ;
170    long rem ;   170    long rem ;
171 };   171 };
172 typedef struct __anonstruct_ldiv_t_10 ldiv_t;   172 typedef struct __anonstruct_ldiv_t_10 ldiv_t;
173 struct __anonstruct_lldiv_t_11 {   173 struct __anonstruct_lldiv_t_11 {
174    long long quot ;   174    long long quot ;
175    long long rem ;   175    long long rem ;
176 };   176 };
177 typedef struct __anonstruct_lldiv_t_11 lldiv_t;   177 typedef struct __anonstruct_lldiv_t_11 lldiv_t;
178 typedef __u_char u_char;   178 typedef __u_char u_char;
179 typedef __u_short u_short;   179 typedef __u_short u_short;
180 typedef __u_int u_int;   180 typedef __u_int u_int;
181 typedef __u_long u_long;   181 typedef __u_long u_long;
182 typedef __quad_t quad_t;   182 typedef __quad_t quad_t;
183 typedef __u_quad_t u_quad_t;   183 typedef __u_quad_t u_quad_t;
184 typedef __fsid_t fsid_t;   184 typedef __fsid_t fsid_t;
185 typedef __loff_t loff_t;   185 typedef __loff_t loff_t;
186 typedef __ino64_t ino_t;   186 typedef __ino64_t ino_t;
187 typedef __dev_t dev_t;   187 typedef __dev_t dev_t;
188 typedef __gid_t gid_t;   188 typedef __gid_t gid_t;
189 typedef __mode_t mode_t;   189 typedef __mode_t mode_t;
190 typedef __nlink_t nlink_t;   190 typedef __nlink_t nlink_t;
191 typedef __uid_t uid_t;   191 typedef __uid_t uid_t;
192 typedef __pid_t pid_t;   192 typedef __pid_t pid_t;
193 typedef __id_t id_t;   193 typedef __id_t id_t;
194 typedef __daddr_t daddr_t;   194 typedef __daddr_t daddr_t;
195 typedef __caddr_t caddr_t;   195 typedef __caddr_t caddr_t;
196 typedef __key_t key_t;   196 typedef __key_t key_t;
197 typedef __clock_t clock_t;   197 typedef __clock_t clock_t;
198 typedef __time_t time_t;   198 typedef __time_t time_t;
199 typedef __clockid_t clockid_t;   199 typedef __clockid_t clockid_t;
200 typedef __timer_t timer_t;   200 typedef __timer_t timer_t;
201 typedef unsigned long ulong;   201 typedef unsigned long ulong;
202 typedef unsigned short ushort;   202 typedef unsigned short ushort;
203 typedef unsigned int uint;   203 typedef unsigned int uint;
204 typedef signed char int8_t;   204 typedef signed char int8_t;
205 typedef short int16_t;   205 typedef short int16_t;
206 typedef int int32_t;   206 typedef int int32_t;
207 typedef long long int64_t;   207 typedef long long int64_t;
208 typedef unsigned char u_int8_t;   208 typedef unsigned char u_int8_t;
209 typedef unsigned short u_int16_t;   209 typedef unsigned short u_int16_t;
210 typedef unsigned int u_int32_t;   210 typedef unsigned int u_int32_t;
211 typedef unsigned long long u_int64_t;   211 typedef unsigned long long u_int64_t;
212 typedef int register_t;   212 typedef int register_t;
213 typedef int __sig_atomic_t;   213 typedef int __sig_atomic_t;
214 struct __anonstruct___sigset_t_12 {   214 struct __anonstruct___sigset_t_12 {
215    unsigned long __val[1024U / (8U * sizeof(unsigned long ))] ;   215    unsigned long __val[1024U / (8U * sizeof(unsigned long ))] ;
216 };   216 };
217 typedef struct __anonstruct___sigset_t_12 __sigset_t;   217 typedef struct __anonstruct___sigset_t_12 __sigset_t;
218 typedef __sigset_t sigset_t;   218 typedef __sigset_t sigset_t;
219 struct timespec {   219 struct timespec {
220    __time_t tv_sec ;   220    __time_t tv_sec ;
221    long tv_nsec ;   221    long tv_nsec ;
222 };   222 };
223 struct timeval {   223 struct timeval {
224    __time_t tv_sec ;   224    __time_t tv_sec ;
225    __suseconds_t tv_usec ;   225    __suseconds_t tv_usec ;
226 };   226 };
227 typedef __suseconds_t suseconds_t;   227 typedef __suseconds_t suseconds_t;
228 typedef long __fd_mask;   228 typedef long __fd_mask;
229 struct __anonstruct_fd_set_13 {   229 struct __anonstruct_fd_set_13 {
230    __fd_mask __fds_bits[1024 / (8 * (int )sizeof(__fd_mask ))] ;   230    __fd_mask __fds_bits[1024 / (8 * (int )sizeof(__fd_mask ))] ;
231 };   231 };
232 typedef struct __anonstruct_fd_set_13 fd_set;   232 typedef struct __anonstruct_fd_set_13 fd_set;
233 typedef __fd_mask fd_mask;   233 typedef __fd_mask fd_mask;
234 typedef __blksize_t blksize_t;   234 typedef __blksize_t blksize_t;
235 typedef __blkcnt64_t blkcnt_t;   235 typedef __blkcnt64_t blkcnt_t;
236 typedef __fsblkcnt64_t fsblkcnt_t;   236 typedef __fsblkcnt64_t fsblkcnt_t;
237 typedef __fsfilcnt64_t fsfilcnt_t;   237 typedef __fsfilcnt64_t fsfilcnt_t;
238 typedef unsigned long pthread_t;   238 typedef unsigned long pthread_t;
239 union __anonunion_pthread_attr_t_14 {   239 union __anonunion_pthread_attr_t_14 {
240    char __size[36] ;   240    char __size[36] ;
241    long __align ;   241    long __align ;
242 };   242 };
243 typedef union __anonunion_pthread_attr_t_14 pthread_attr_t;   243 typedef union __anonunion_pthread_attr_t_14 pthread_attr_t;
244 struct __pthread_internal_slist {   244 struct __pthread_internal_slist {
245    struct __pthread_internal_slist *__next ;   245    struct __pthread_internal_slist *__next ;
246 };   246 };
247 typedef struct __pthread_internal_slist __pthread_slist_t;   247 typedef struct __pthread_internal_slist __pthread_slist_t;
248 union __anonunion____missing_field_name_16 {   248 union __anonunion____missing_field_name_16 {
249    int __spins ;   249    int __spins ;
250    __pthread_slist_t __list ;   250    __pthread_slist_t __list ;
251 };   251 };
252 struct __pthread_mutex_s {   252 struct __pthread_mutex_s {
253    int __lock ;   253    int __lock ;
254    unsigned int __count ;   254    unsigned int __count ;
255    int __owner ;   255    int __owner ;
256    int __kind ;   256    int __kind ;
257    unsigned int __nusers ;   257    unsigned int __nusers ;
258    union __anonunion____missing_field_name_16 __annonCompField1 ;   258    union __anonunion____missing_field_name_16 __annonCompField1 ;
259 };   259 };
260 union __anonunion_pthread_mutex_t_15 {   260 union __anonunion_pthread_mutex_t_15 {
261    struct __pthread_mutex_s __data ;   261    struct __pthread_mutex_s __data ;
262    char __size[24] ;   262    char __size[24] ;
263    long __align ;   263    long __align ;
264 };   264 };
265 typedef union __anonunion_pthread_mutex_t_15 pthread_mutex_t;   265 typedef union __anonunion_pthread_mutex_t_15 pthread_mutex_t;
266 union __anonunion_pthread_mutexattr_t_17 {   266 union __anonunion_pthread_mutexattr_t_17 {
267    char __size[4] ;   267    char __size[4] ;
268    long __align ;   268    long __align ;
269 };   269 };
270 typedef union __anonunion_pthread_mutexattr_t_17 pthread_mutexattr_t;   270 typedef union __anonunion_pthread_mutexattr_t_17 pthread_mutexattr_t;
271 struct __anonstruct___data_19 {   271 struct __anonstruct___data_19 {
272    int __lock ;   272    int __lock ;
273    unsigned int __futex ;   273    unsigned int __futex ;
274    unsigned long long __total_seq ;   274    unsigned long long __total_seq ;
275    unsigned long long __wakeup_seq ;   275    unsigned long long __wakeup_seq ;
276    unsigned long long __woken_seq ;   276    unsigned long long __woken_seq ;
277    void *__mutex ;   277    void *__mutex ;
278    unsigned int __nwaiters ;   278    unsigned int __nwaiters ;
279    unsigned int __broadcast_seq ;   279    unsigned int __broadcast_seq ;
280 };   280 };
281 union __anonunion_pthread_cond_t_18 {   281 union __anonunion_pthread_cond_t_18 {
282    struct __anonstruct___data_19 __data ;   282    struct __anonstruct___data_19 __data ;
283    char __size[48] ;   283    char __size[48] ;
284    long long __align ;   284    long long __align ;
285 };   285 };
286 typedef union __anonunion_pthread_cond_t_18 pthread_cond_t;   286 typedef union __anonunion_pthread_cond_t_18 pthread_cond_t;
287 union __anonunion_pthread_condattr_t_20 {   287 union __anonunion_pthread_condattr_t_20 {
288    char __size[4] ;   288    char __size[4] ;
289    long __align ;   289    long __align ;
290 };   290 };
291 typedef union __anonunion_pthread_condattr_t_20 pthread_condattr_t;   291 typedef union __anonunion_pthread_condattr_t_20 pthread_condattr_t;
292 typedef unsigned int pthread_key_t;   292 typedef unsigned int pthread_key_t;
293 typedef int pthread_once_t;   293 typedef int pthread_once_t;
294 struct __anonstruct___data_22 {   294 struct __anonstruct___data_22 {
295    int __lock ;   295    int __lock ;
296    unsigned int __nr_readers ;   296    unsigned int __nr_readers ;
297    unsigned int __readers_wakeup ;   297    unsigned int __readers_wakeup ;
298    unsigned int __writer_wakeup ;   298    unsigned int __writer_wakeup ;
299    unsigned int __nr_readers_queued ;   299    unsigned int __nr_readers_queued ;
300    unsigned int __nr_writers_queued ;   300    unsigned int __nr_writers_queued ;
301    unsigned char __flags ;   301    unsigned char __flags ;
302    unsigned char __shared ;   302    unsigned char __shared ;
303    unsigned char __pad1 ;   303    unsigned char __pad1 ;
304    unsigned char __pad2 ;   304    unsigned char __pad2 ;
305    int __writer ;   305    int __writer ;
306 };   306 };
307 union __anonunion_pthread_rwlock_t_21 {   307 union __anonunion_pthread_rwlock_t_21 {
308    struct __anonstruct___data_22 __data ;   308    struct __anonstruct___data_22 __data ;
309    char __size[32] ;   309    char __size[32] ;
310    long __align ;   310    long __align ;
311 };   311 };
312 typedef union __anonunion_pthread_rwlock_t_21 pthread_rwlock_t;   312 typedef union __anonunion_pthread_rwlock_t_21 pthread_rwlock_t;
313 union __anonunion_pthread_rwlockattr_t_23 {   313 union __anonunion_pthread_rwlockattr_t_23 {
314    char __size[8] ;   314    char __size[8] ;
315    long __align ;   315    long __align ;
316 };   316 };
317 typedef union __anonunion_pthread_rwlockattr_t_23 pthread_rwlockattr_t;   317 typedef union __anonunion_pthread_rwlockattr_t_23 pthread_rwlockattr_t;
318 typedef int volatile   pthread_spinlock_t;   318 typedef int volatile   pthread_spinlock_t;
319 union __anonunion_pthread_barrier_t_24 {   319 union __anonunion_pthread_barrier_t_24 {
320    char __size[20] ;   320    char __size[20] ;
321    long __align ;   321    long __align ;
322 };   322 };
323 typedef union __anonunion_pthread_barrier_t_24 pthread_barrier_t;   323 typedef union __anonunion_pthread_barrier_t_24 pthread_barrier_t;
324 union __anonunion_pthread_barrierattr_t_25 {   324 union __anonunion_pthread_barrierattr_t_25 {
325    char __size[4] ;   325    char __size[4] ;
326    int __align ;   326    int __align ;
327 };   327 };
328 typedef union __anonunion_pthread_barrierattr_t_25 pthread_barrierattr_t;   328 typedef union __anonunion_pthread_barrierattr_t_25 pthread_barrierattr_t;
329 struct random_data {   329 struct random_data {
330    int32_t *fptr ;   330    int32_t *fptr ;
331    int32_t *rptr ;   331    int32_t *rptr ;
332    int32_t *state ;   332    int32_t *state ;
333    int rand_type ;   333    int rand_type ;
334    int rand_deg ;   334    int rand_deg ;
335    int rand_sep ;   335    int rand_sep ;
336    int32_t *end_ptr ;   336    int32_t *end_ptr ;
337 };   337 };
338 struct drand48_data {   338 struct drand48_data {
339    unsigned short __x[3] ;   339    unsigned short __x[3] ;
340    unsigned short __old_x[3] ;   340    unsigned short __old_x[3] ;
341    unsigned short __c ;   341    unsigned short __c ;
342    unsigned short __init ;   342    unsigned short __init ;
343    unsigned long long __a ;   343    unsigned long long __a ;
344 };   344 };
345 typedef int (*__compar_fn_t)(void const   * , void const   * );   345 typedef int (*__compar_fn_t)(void const   * , void const   * );
346 struct __locale_data;   346 struct __locale_data;
347 struct __locale_struct {   347 struct __locale_struct {
348    struct __locale_data *__locales[13] ;   348    struct __locale_data *__locales[13] ;
349    unsigned short const   *__ctype_b ;   349    unsigned short const   *__ctype_b ;
350    int const   *__ctype_tolower ;   350    int const   *__ctype_tolower ;
351    int const   *__ctype_toupper ;   351    int const   *__ctype_toupper ;
352    char const   *__names[13] ;   352    char const   *__names[13] ;
353 };   353 };
354 typedef struct __locale_struct *__locale_t;   354 typedef struct __locale_struct *__locale_t;
355 typedef __locale_t locale_t;   355 typedef __locale_t locale_t;
356 enum __anonenum_26 {   356 enum __anonenum_26 {
357     _ISupper = 256,   357     _ISupper = 256,
358     _ISlower = 512,   358     _ISlower = 512,
359     _ISalpha = 1024,   359     _ISalpha = 1024,
360     _ISdigit = 2048,   360     _ISdigit = 2048,
361     _ISxdigit = 4096,   361     _ISxdigit = 4096,
362     _ISspace = 8192,   362     _ISspace = 8192,
363     _ISprint = 16384,   363     _ISprint = 16384,
364     _ISgraph = 32768,   364     _ISgraph = 32768,
365     _ISblank = 1,   365     _ISblank = 1,
366     _IScntrl = 2,   366     _IScntrl = 2,
367     _ISpunct = 4,   367     _ISpunct = 4,
368     _ISalnum = 8   368     _ISalnum = 8
369 } ;   369 } ;
370 typedef __useconds_t useconds_t;   370 typedef __useconds_t useconds_t;
371 typedef __intptr_t intptr_t;   371 typedef __intptr_t intptr_t;
372 typedef __socklen_t socklen_t;   372 typedef __socklen_t socklen_t;
373 enum __anonenum_27 {   373 enum __anonenum_27 {
374     _PC_LINK_MAX = 0,   374     _PC_LINK_MAX = 0,
375     _PC_MAX_CANON = 1,   375     _PC_MAX_CANON = 1,
376     _PC_MAX_INPUT = 2,   376     _PC_MAX_INPUT = 2,
377     _PC_NAME_MAX = 3,   377     _PC_NAME_MAX = 3,
378     _PC_PATH_MAX = 4,   378     _PC_PATH_MAX = 4,
379     _PC_PIPE_BUF = 5,   379     _PC_PIPE_BUF = 5,
380     _PC_CHOWN_RESTRICTED = 6,   380     _PC_CHOWN_RESTRICTED = 6,
381     _PC_NO_TRUNC = 7,   381     _PC_NO_TRUNC = 7,
382     _PC_VDISABLE = 8,   382     _PC_VDISABLE = 8,
383     _PC_SYNC_IO = 9,   383     _PC_SYNC_IO = 9,
384     _PC_ASYNC_IO = 10,   384     _PC_ASYNC_IO = 10,
385     _PC_PRIO_IO = 11,   385     _PC_PRIO_IO = 11,
386     _PC_SOCK_MAXBUF = 12,   386     _PC_SOCK_MAXBUF = 12,
387     _PC_FILESIZEBITS = 13,   387     _PC_FILESIZEBITS = 13,
388     _PC_REC_INCR_XFER_SIZE = 14,   388     _PC_REC_INCR_XFER_SIZE = 14,
389     _PC_REC_MAX_XFER_SIZE = 15,   389     _PC_REC_MAX_XFER_SIZE = 15,
390     _PC_REC_MIN_XFER_SIZE = 16,   390     _PC_REC_MIN_XFER_SIZE = 16,
391     _PC_REC_XFER_ALIGN = 17,   391     _PC_REC_XFER_ALIGN = 17,
392     _PC_ALLOC_SIZE_MIN = 18,   392     _PC_ALLOC_SIZE_MIN = 18,
393     _PC_SYMLINK_MAX = 19,   393     _PC_SYMLINK_MAX = 19,
394     _PC_2_SYMLINKS = 20   394     _PC_2_SYMLINKS = 20
395 } ;   395 } ;
396 enum __anonenum_28 {   396 enum __anonenum_28 {
397     _SC_ARG_MAX = 0,   397     _SC_ARG_MAX = 0,
398     _SC_CHILD_MAX = 1,   398     _SC_CHILD_MAX = 1,
399     _SC_CLK_TCK = 2,   399     _SC_CLK_TCK = 2,
400     _SC_NGROUPS_MAX = 3,   400     _SC_NGROUPS_MAX = 3,
401     _SC_OPEN_MAX = 4,   401     _SC_OPEN_MAX = 4,
402     _SC_STREAM_MAX = 5,   402     _SC_STREAM_MAX = 5,
403     _SC_TZNAME_MAX = 6,   403     _SC_TZNAME_MAX = 6,
404     _SC_JOB_CONTROL = 7,   404     _SC_JOB_CONTROL = 7,
405     _SC_SAVED_IDS = 8,   405     _SC_SAVED_IDS = 8,
406     _SC_REALTIME_SIGNALS = 9,   406     _SC_REALTIME_SIGNALS = 9,
407     _SC_PRIORITY_SCHEDULING = 10,   407     _SC_PRIORITY_SCHEDULING = 10,
408     _SC_TIMERS = 11,   408     _SC_TIMERS = 11,
409     _SC_ASYNCHRONOUS_IO = 12,   409     _SC_ASYNCHRONOUS_IO = 12,
410     _SC_PRIORITIZED_IO = 13,   410     _SC_PRIORITIZED_IO = 13,
411     _SC_SYNCHRONIZED_IO = 14,   411     _SC_SYNCHRONIZED_IO = 14,
412     _SC_FSYNC = 15,   412     _SC_FSYNC = 15,
413     _SC_MAPPED_FILES = 16,   413     _SC_MAPPED_FILES = 16,
414     _SC_MEMLOCK = 17,   414     _SC_MEMLOCK = 17,
415     _SC_MEMLOCK_RANGE = 18,   415     _SC_MEMLOCK_RANGE = 18,
416     _SC_MEMORY_PROTECTION = 19,   416     _SC_MEMORY_PROTECTION = 19,
417     _SC_MESSAGE_PASSING = 20,   417     _SC_MESSAGE_PASSING = 20,
418     _SC_SEMAPHORES = 21,   418     _SC_SEMAPHORES = 21,
419     _SC_SHARED_MEMORY_OBJECTS = 22,   419     _SC_SHARED_MEMORY_OBJECTS = 22,
420     _SC_AIO_LISTIO_MAX = 23,   420     _SC_AIO_LISTIO_MAX = 23,
421     _SC_AIO_MAX = 24,   421     _SC_AIO_MAX = 24,
422     _SC_AIO_PRIO_DELTA_MAX = 25,   422     _SC_AIO_PRIO_DELTA_MAX = 25,
423     _SC_DELAYTIMER_MAX = 26,   423     _SC_DELAYTIMER_MAX = 26,
424     _SC_MQ_OPEN_MAX = 27,   424     _SC_MQ_OPEN_MAX = 27,
425     _SC_MQ_PRIO_MAX = 28,   425     _SC_MQ_PRIO_MAX = 28,
426     _SC_VERSION = 29,   426     _SC_VERSION = 29,
427     _SC_PAGESIZE = 30,   427     _SC_PAGESIZE = 30,
428     _SC_RTSIG_MAX = 31,   428     _SC_RTSIG_MAX = 31,
429     _SC_SEM_NSEMS_MAX = 32,   429     _SC_SEM_NSEMS_MAX = 32,
430     _SC_SEM_VALUE_MAX = 33,   430     _SC_SEM_VALUE_MAX = 33,
431     _SC_SIGQUEUE_MAX = 34,   431     _SC_SIGQUEUE_MAX = 34,
432     _SC_TIMER_MAX = 35,   432     _SC_TIMER_MAX = 35,
433     _SC_BC_BASE_MAX = 36,   433     _SC_BC_BASE_MAX = 36,
434     _SC_BC_DIM_MAX = 37,   434     _SC_BC_DIM_MAX = 37,
435     _SC_BC_SCALE_MAX = 38,   435     _SC_BC_SCALE_MAX = 38,
436     _SC_BC_STRING_MAX = 39,   436     _SC_BC_STRING_MAX = 39,
437     _SC_COLL_WEIGHTS_MAX = 40,   437     _SC_COLL_WEIGHTS_MAX = 40,
438     _SC_EQUIV_CLASS_MAX = 41,   438     _SC_EQUIV_CLASS_MAX = 41,
439     _SC_EXPR_NEST_MAX = 42,   439     _SC_EXPR_NEST_MAX = 42,
440     _SC_LINE_MAX = 43,   440     _SC_LINE_MAX = 43,
441     _SC_RE_DUP_MAX = 44,   441     _SC_RE_DUP_MAX = 44,
442     _SC_CHARCLASS_NAME_MAX = 45,   442     _SC_CHARCLASS_NAME_MAX = 45,
443     _SC_2_VERSION = 46,   443     _SC_2_VERSION = 46,
444     _SC_2_C_BIND = 47,   444     _SC_2_C_BIND = 47,
445     _SC_2_C_DEV = 48,   445     _SC_2_C_DEV = 48,
446     _SC_2_FORT_DEV = 49,   446     _SC_2_FORT_DEV = 49,
447     _SC_2_FORT_RUN = 50,   447     _SC_2_FORT_RUN = 50,
448     _SC_2_SW_DEV = 51,   448     _SC_2_SW_DEV = 51,
449     _SC_2_LOCALEDEF = 52,   449     _SC_2_LOCALEDEF = 52,
450     _SC_PII = 53,   450     _SC_PII = 53,
451     _SC_PII_XTI = 54,   451     _SC_PII_XTI = 54,
452     _SC_PII_SOCKET = 55,   452     _SC_PII_SOCKET = 55,
453     _SC_PII_INTERNET = 56,   453     _SC_PII_INTERNET = 56,
454     _SC_PII_OSI = 57,   454     _SC_PII_OSI = 57,
455     _SC_POLL = 58,   455     _SC_POLL = 58,
456     _SC_SELECT = 59,   456     _SC_SELECT = 59,
457     _SC_UIO_MAXIOV = 60,   457     _SC_UIO_MAXIOV = 60,
458     _SC_IOV_MAX = 60,   458     _SC_IOV_MAX = 60,
459     _SC_PII_INTERNET_STREAM = 61,   459     _SC_PII_INTERNET_STREAM = 61,
460     _SC_PII_INTERNET_DGRAM = 62,   460     _SC_PII_INTERNET_DGRAM = 62,
461     _SC_PII_OSI_COTS = 63,   461     _SC_PII_OSI_COTS = 63,
462     _SC_PII_OSI_CLTS = 64,   462     _SC_PII_OSI_CLTS = 64,
463     _SC_PII_OSI_M = 65,   463     _SC_PII_OSI_M = 65,
464     _SC_T_IOV_MAX = 66,   464     _SC_T_IOV_MAX = 66,
465     _SC_THREADS = 67,   465     _SC_THREADS = 67,
466     _SC_THREAD_SAFE_FUNCTIONS = 68,   466     _SC_THREAD_SAFE_FUNCTIONS = 68,
467     _SC_GETGR_R_SIZE_MAX = 69,   467     _SC_GETGR_R_SIZE_MAX = 69,
468     _SC_GETPW_R_SIZE_MAX = 70,   468     _SC_GETPW_R_SIZE_MAX = 70,
469     _SC_LOGIN_NAME_MAX = 71,   469     _SC_LOGIN_NAME_MAX = 71,
470     _SC_TTY_NAME_MAX = 72,   470     _SC_TTY_NAME_MAX = 72,
471     _SC_THREAD_DESTRUCTOR_ITERATIONS = 73,   471     _SC_THREAD_DESTRUCTOR_ITERATIONS = 73,
472     _SC_THREAD_KEYS_MAX = 74,   472     _SC_THREAD_KEYS_MAX = 74,
473     _SC_THREAD_STACK_MIN = 75,   473     _SC_THREAD_STACK_MIN = 75,
474     _SC_THREAD_THREADS_MAX = 76,   474     _SC_THREAD_THREADS_MAX = 76,
475     _SC_THREAD_ATTR_STACKADDR = 77,   475     _SC_THREAD_ATTR_STACKADDR = 77,
476     _SC_THREAD_ATTR_STACKSIZE = 78,   476     _SC_THREAD_ATTR_STACKSIZE = 78,
477     _SC_THREAD_PRIORITY_SCHEDULING = 79,   477     _SC_THREAD_PRIORITY_SCHEDULING = 79,
478     _SC_THREAD_PRIO_INHERIT = 80,   478     _SC_THREAD_PRIO_INHERIT = 80,
479     _SC_THREAD_PRIO_PROTECT = 81,   479     _SC_THREAD_PRIO_PROTECT = 81,
480     _SC_THREAD_PROCESS_SHARED = 82,   480     _SC_THREAD_PROCESS_SHARED = 82,
481     _SC_NPROCESSORS_CONF = 83,   481     _SC_NPROCESSORS_CONF = 83,
482     _SC_NPROCESSORS_ONLN = 84,   482     _SC_NPROCESSORS_ONLN = 84,
483     _SC_PHYS_PAGES = 85,   483     _SC_PHYS_PAGES = 85,
484     _SC_AVPHYS_PAGES = 86,   484     _SC_AVPHYS_PAGES = 86,
485     _SC_ATEXIT_MAX = 87,   485     _SC_ATEXIT_MAX = 87,
486     _SC_PASS_MAX = 88,   486     _SC_PASS_MAX = 88,
487     _SC_XOPEN_VERSION = 89,   487     _SC_XOPEN_VERSION = 89,
488     _SC_XOPEN_XCU_VERSION = 90,   488     _SC_XOPEN_XCU_VERSION = 90,
489     _SC_XOPEN_UNIX = 91,   489     _SC_XOPEN_UNIX = 91,
490     _SC_XOPEN_CRYPT = 92,   490     _SC_XOPEN_CRYPT = 92,
491     _SC_XOPEN_ENH_I18N = 93,   491     _SC_XOPEN_ENH_I18N = 93,
492     _SC_XOPEN_SHM = 94,   492     _SC_XOPEN_SHM = 94,
493     _SC_2_CHAR_TERM = 95,   493     _SC_2_CHAR_TERM = 95,
494     _SC_2_C_VERSION = 96,   494     _SC_2_C_VERSION = 96,
495     _SC_2_UPE = 97,   495     _SC_2_UPE = 97,
496     _SC_XOPEN_XPG2 = 98,   496     _SC_XOPEN_XPG2 = 98,
497     _SC_XOPEN_XPG3 = 99,   497     _SC_XOPEN_XPG3 = 99,
498     _SC_XOPEN_XPG4 = 100,   498     _SC_XOPEN_XPG4 = 100,
499     _SC_CHAR_BIT = 101,   499     _SC_CHAR_BIT = 101,
500     _SC_CHAR_MAX = 102,   500     _SC_CHAR_MAX = 102,
501     _SC_CHAR_MIN = 103,   501     _SC_CHAR_MIN = 103,
502     _SC_INT_MAX = 104,   502     _SC_INT_MAX = 104,
503     _SC_INT_MIN = 105,   503     _SC_INT_MIN = 105,
504     _SC_LONG_BIT = 106,   504     _SC_LONG_BIT = 106,
505     _SC_WORD_BIT = 107,   505     _SC_WORD_BIT = 107,
506     _SC_MB_LEN_MAX = 108,   506     _SC_MB_LEN_MAX = 108,
507     _SC_NZERO = 109,   507     _SC_NZERO = 109,
508     _SC_SSIZE_MAX = 110,   508     _SC_SSIZE_MAX = 110,
509     _SC_SCHAR_MAX = 111,   509     _SC_SCHAR_MAX = 111,
510     _SC_SCHAR_MIN = 112,   510     _SC_SCHAR_MIN = 112,
511     _SC_SHRT_MAX = 113,   511     _SC_SHRT_MAX = 113,
512     _SC_SHRT_MIN = 114,   512     _SC_SHRT_MIN = 114,
513     _SC_UCHAR_MAX = 115,   513     _SC_UCHAR_MAX = 115,
514     _SC_UINT_MAX = 116,   514     _SC_UINT_MAX = 116,
515     _SC_ULONG_MAX = 117,   515     _SC_ULONG_MAX = 117,
516     _SC_USHRT_MAX = 118,   516     _SC_USHRT_MAX = 118,
517     _SC_NL_ARGMAX = 119,   517     _SC_NL_ARGMAX = 119,
518     _SC_NL_LANGMAX = 120,   518     _SC_NL_LANGMAX = 120,
519     _SC_NL_MSGMAX = 121,   519     _SC_NL_MSGMAX = 121,
520     _SC_NL_NMAX = 122,   520     _SC_NL_NMAX = 122,
521     _SC_NL_SETMAX = 123,   521     _SC_NL_SETMAX = 123,
522     _SC_NL_TEXTMAX = 124,   522     _SC_NL_TEXTMAX = 124,
523     _SC_XBS5_ILP32_OFF32 = 125,   523     _SC_XBS5_ILP32_OFF32 = 125,
524     _SC_XBS5_ILP32_OFFBIG = 126,   524     _SC_XBS5_ILP32_OFFBIG = 126,
525     _SC_XBS5_LP64_OFF64 = 127,   525     _SC_XBS5_LP64_OFF64 = 127,
526     _SC_XBS5_LPBIG_OFFBIG = 128,   526     _SC_XBS5_LPBIG_OFFBIG = 128,
527     _SC_XOPEN_LEGACY = 129,   527     _SC_XOPEN_LEGACY = 129,
528     _SC_XOPEN_REALTIME = 130,   528     _SC_XOPEN_REALTIME = 130,
529     _SC_XOPEN_REALTIME_THREADS = 131,   529     _SC_XOPEN_REALTIME_THREADS = 131,
530     _SC_ADVISORY_INFO = 132,   530     _SC_ADVISORY_INFO = 132,
531     _SC_BARRIERS = 133,   531     _SC_BARRIERS = 133,
532     _SC_BASE = 134,   532     _SC_BASE = 134,
533     _SC_C_LANG_SUPPORT = 135,   533     _SC_C_LANG_SUPPORT = 135,
534     _SC_C_LANG_SUPPORT_R = 136,   534     _SC_C_LANG_SUPPORT_R = 136,
535     _SC_CLOCK_SELECTION = 137,   535     _SC_CLOCK_SELECTION = 137,
536     _SC_CPUTIME = 138,   536     _SC_CPUTIME = 138,
537     _SC_THREAD_CPUTIME = 139,   537     _SC_THREAD_CPUTIME = 139,
538     _SC_DEVICE_IO = 140,   538     _SC_DEVICE_IO = 140,
539     _SC_DEVICE_SPECIFIC = 141,   539     _SC_DEVICE_SPECIFIC = 141,
540     _SC_DEVICE_SPECIFIC_R = 142,   540     _SC_DEVICE_SPECIFIC_R = 142,
541     _SC_FD_MGMT = 143,   541     _SC_FD_MGMT = 143,
542     _SC_FIFO = 144,   542     _SC_FIFO = 144,
543     _SC_PIPE = 145,   543     _SC_PIPE = 145,
544     _SC_FILE_ATTRIBUTES = 146,   544     _SC_FILE_ATTRIBUTES = 146,
545     _SC_FILE_LOCKING = 147,   545     _SC_FILE_LOCKING = 147,
546     _SC_FILE_SYSTEM = 148,   546     _SC_FILE_SYSTEM = 148,
547     _SC_MONOTONIC_CLOCK = 149,   547     _SC_MONOTONIC_CLOCK = 149,
548     _SC_MULTI_PROCESS = 150,   548     _SC_MULTI_PROCESS = 150,
549     _SC_SINGLE_PROCESS = 151,   549     _SC_SINGLE_PROCESS = 151,
550     _SC_NETWORKING = 152,   550     _SC_NETWORKING = 152,
551     _SC_READER_WRITER_LOCKS = 153,   551     _SC_READER_WRITER_LOCKS = 153,
552     _SC_SPIN_LOCKS = 154,   552     _SC_SPIN_LOCKS = 154,
553     _SC_REGEXP = 155,   553     _SC_REGEXP = 155,
554     _SC_REGEX_VERSION = 156,   554     _SC_REGEX_VERSION = 156,
555     _SC_SHELL = 157,   555     _SC_SHELL = 157,
556     _SC_SIGNALS = 158,   556     _SC_SIGNALS = 158,
557     _SC_SPAWN = 159,   557     _SC_SPAWN = 159,
558     _SC_SPORADIC_SERVER = 160,   558     _SC_SPORADIC_SERVER = 160,
559     _SC_THREAD_SPORADIC_SERVER = 161,   559     _SC_THREAD_SPORADIC_SERVER = 161,
560     _SC_SYSTEM_DATABASE = 162,   560     _SC_SYSTEM_DATABASE = 162,
561     _SC_SYSTEM_DATABASE_R = 163,   561     _SC_SYSTEM_DATABASE_R = 163,
562     _SC_TIMEOUTS = 164,   562     _SC_TIMEOUTS = 164,
563     _SC_TYPED_MEMORY_OBJECTS = 165,   563     _SC_TYPED_MEMORY_OBJECTS = 165,
564     _SC_USER_GROUPS = 166,   564     _SC_USER_GROUPS = 166,
565     _SC_USER_GROUPS_R = 167,   565     _SC_USER_GROUPS_R = 167,
566     _SC_2_PBS = 168,   566     _SC_2_PBS = 168,
567     _SC_2_PBS_ACCOUNTING = 169,   567     _SC_2_PBS_ACCOUNTING = 169,
568     _SC_2_PBS_LOCATE = 170,   568     _SC_2_PBS_LOCATE = 170,
569     _SC_2_PBS_MESSAGE = 171,   569     _SC_2_PBS_MESSAGE = 171,
570     _SC_2_PBS_TRACK = 172,   570     _SC_2_PBS_TRACK = 172,
571     _SC_SYMLOOP_MAX = 173,   571     _SC_SYMLOOP_MAX = 173,
572     _SC_STREAMS = 174,   572     _SC_STREAMS = 174,
573     _SC_2_PBS_CHECKPOINT = 175,   573     _SC_2_PBS_CHECKPOINT = 175,
574     _SC_V6_ILP32_OFF32 = 176,   574     _SC_V6_ILP32_OFF32 = 176,
575     _SC_V6_ILP32_OFFBIG = 177,   575     _SC_V6_ILP32_OFFBIG = 177,
576     _SC_V6_LP64_OFF64 = 178,   576     _SC_V6_LP64_OFF64 = 178,
577     _SC_V6_LPBIG_OFFBIG = 179,   577     _SC_V6_LPBIG_OFFBIG = 179,
578     _SC_HOST_NAME_MAX = 180,   578     _SC_HOST_NAME_MAX = 180,
579     _SC_TRACE = 181,   579     _SC_TRACE = 181,
580     _SC_TRACE_EVENT_FILTER = 182,   580     _SC_TRACE_EVENT_FILTER = 182,
581     _SC_TRACE_INHERIT = 183,   581     _SC_TRACE_INHERIT = 183,
582     _SC_TRACE_LOG = 184,   582     _SC_TRACE_LOG = 184,
583     _SC_LEVEL1_ICACHE_SIZE = 185,   583     _SC_LEVEL1_ICACHE_SIZE = 185,
584     _SC_LEVEL1_ICACHE_ASSOC = 186,   584     _SC_LEVEL1_ICACHE_ASSOC = 186,
585     _SC_LEVEL1_ICACHE_LINESIZE = 187,   585     _SC_LEVEL1_ICACHE_LINESIZE = 187,
586     _SC_LEVEL1_DCACHE_SIZE = 188,   586     _SC_LEVEL1_DCACHE_SIZE = 188,
587     _SC_LEVEL1_DCACHE_ASSOC = 189,   587     _SC_LEVEL1_DCACHE_ASSOC = 189,
588     _SC_LEVEL1_DCACHE_LINESIZE = 190,   588     _SC_LEVEL1_DCACHE_LINESIZE = 190,
589     _SC_LEVEL2_CACHE_SIZE = 191,   589     _SC_LEVEL2_CACHE_SIZE = 191,
590     _SC_LEVEL2_CACHE_ASSOC = 192,   590     _SC_LEVEL2_CACHE_ASSOC = 192,
591     _SC_LEVEL2_CACHE_LINESIZE = 193,   591     _SC_LEVEL2_CACHE_LINESIZE = 193,
592     _SC_LEVEL3_CACHE_SIZE = 194,   592     _SC_LEVEL3_CACHE_SIZE = 194,
593     _SC_LEVEL3_CACHE_ASSOC = 195,   593     _SC_LEVEL3_CACHE_ASSOC = 195,
594     _SC_LEVEL3_CACHE_LINESIZE = 196,   594     _SC_LEVEL3_CACHE_LINESIZE = 196,
595     _SC_LEVEL4_CACHE_SIZE = 197,   595     _SC_LEVEL4_CACHE_SIZE = 197,
596     _SC_LEVEL4_CACHE_ASSOC = 198,   596     _SC_LEVEL4_CACHE_ASSOC = 198,
597     _SC_LEVEL4_CACHE_LINESIZE = 199,   597     _SC_LEVEL4_CACHE_LINESIZE = 199,
598     _SC_IPV6 = 235,   598     _SC_IPV6 = 235,
599     _SC_RAW_SOCKETS = 236,   599     _SC_RAW_SOCKETS = 236,
600     _SC_V7_ILP32_OFF32 = 237,   600     _SC_V7_ILP32_OFF32 = 237,
601     _SC_V7_ILP32_OFFBIG = 238,   601     _SC_V7_ILP32_OFFBIG = 238,
602     _SC_V7_LP64_OFF64 = 239,   602     _SC_V7_LP64_OFF64 = 239,
603     _SC_V7_LPBIG_OFFBIG = 240,   603     _SC_V7_LPBIG_OFFBIG = 240,
604     _SC_SS_REPL_MAX = 241,   604     _SC_SS_REPL_MAX = 241,
605     _SC_TRACE_EVENT_NAME_MAX = 242,   605     _SC_TRACE_EVENT_NAME_MAX = 242,
606     _SC_TRACE_NAME_MAX = 243,   606     _SC_TRACE_NAME_MAX = 243,
607     _SC_TRACE_SYS_MAX = 244,   607     _SC_TRACE_SYS_MAX = 244,
608     _SC_TRACE_USER_EVENT_MAX = 245,   608     _SC_TRACE_USER_EVENT_MAX = 245,
609     _SC_XOPEN_STREAMS = 246,   609     _SC_XOPEN_STREAMS = 246,
610     _SC_THREAD_ROBUST_PRIO_INHERIT = 247,   610     _SC_THREAD_ROBUST_PRIO_INHERIT = 247,
611     _SC_THREAD_ROBUST_PRIO_PROTECT = 248   611     _SC_THREAD_ROBUST_PRIO_PROTECT = 248
612 } ;   612 } ;
613 enum __anonenum_29 {   613 enum __anonenum_29 {
614     _CS_PATH = 0,   614     _CS_PATH = 0,
615     _CS_V6_WIDTH_RESTRICTED_ENVS = 1,   615     _CS_V6_WIDTH_RESTRICTED_ENVS = 1,
616     _CS_GNU_LIBC_VERSION = 2,   616     _CS_GNU_LIBC_VERSION = 2,
617     _CS_GNU_LIBPTHREAD_VERSION = 3,   617     _CS_GNU_LIBPTHREAD_VERSION = 3,
618     _CS_V5_WIDTH_RESTRICTED_ENVS = 4,   618     _CS_V5_WIDTH_RESTRICTED_ENVS = 4,
619     _CS_V7_WIDTH_RESTRICTED_ENVS = 5,   619     _CS_V7_WIDTH_RESTRICTED_ENVS = 5,
620     _CS_LFS_CFLAGS = 1000,   620     _CS_LFS_CFLAGS = 1000,
621     _CS_LFS_LDFLAGS = 1001,   621     _CS_LFS_LDFLAGS = 1001,
622     _CS_LFS_LIBS = 1002,   622     _CS_LFS_LIBS = 1002,
623     _CS_LFS_LINTFLAGS = 1003,   623     _CS_LFS_LINTFLAGS = 1003,
624     _CS_LFS64_CFLAGS = 1004,   624     _CS_LFS64_CFLAGS = 1004,
625     _CS_LFS64_LDFLAGS = 1005,   625     _CS_LFS64_LDFLAGS = 1005,
626     _CS_LFS64_LIBS = 1006,   626     _CS_LFS64_LIBS = 1006,
627     _CS_LFS64_LINTFLAGS = 1007,   627     _CS_LFS64_LINTFLAGS = 1007,
628     _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,   628     _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,
629     _CS_XBS5_ILP32_OFF32_LDFLAGS = 1101,   629     _CS_XBS5_ILP32_OFF32_LDFLAGS = 1101,
630     _CS_XBS5_ILP32_OFF32_LIBS = 1102,   630     _CS_XBS5_ILP32_OFF32_LIBS = 1102,
631     _CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103,   631     _CS_XBS5_ILP32_OFF32_LINTFLAGS = 1103,
632     _CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104,   632     _CS_XBS5_ILP32_OFFBIG_CFLAGS = 1104,
633     _CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105,   633     _CS_XBS5_ILP32_OFFBIG_LDFLAGS = 1105,
634     _CS_XBS5_ILP32_OFFBIG_LIBS = 1106,   634     _CS_XBS5_ILP32_OFFBIG_LIBS = 1106,
635     _CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107,   635     _CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 1107,
636     _CS_XBS5_LP64_OFF64_CFLAGS = 1108,   636     _CS_XBS5_LP64_OFF64_CFLAGS = 1108,
637     _CS_XBS5_LP64_OFF64_LDFLAGS = 1109,   637     _CS_XBS5_LP64_OFF64_LDFLAGS = 1109,
638     _CS_XBS5_LP64_OFF64_LIBS = 1110,   638     _CS_XBS5_LP64_OFF64_LIBS = 1110,
639     _CS_XBS5_LP64_OFF64_LINTFLAGS = 1111,   639     _CS_XBS5_LP64_OFF64_LINTFLAGS = 1111,
640     _CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112,   640     _CS_XBS5_LPBIG_OFFBIG_CFLAGS = 1112,
641     _CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113,   641     _CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 1113,
642     _CS_XBS5_LPBIG_OFFBIG_LIBS = 1114,   642     _CS_XBS5_LPBIG_OFFBIG_LIBS = 1114,
643     _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115,   643     _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 1115,
644     _CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116,   644     _CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116,
645     _CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117,   645     _CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117,
646     _CS_POSIX_V6_ILP32_OFF32_LIBS = 1118,   646     _CS_POSIX_V6_ILP32_OFF32_LIBS = 1118,
647     _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119,   647     _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119,
648     _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120,   648     _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120,
649     _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121,   649     _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121,
650     _CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122,   650     _CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122,
651     _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123,   651     _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123,
652     _CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124,   652     _CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124,
653     _CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125,   653     _CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125,
654     _CS_POSIX_V6_LP64_OFF64_LIBS = 1126,   654     _CS_POSIX_V6_LP64_OFF64_LIBS = 1126,
655     _CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127,   655     _CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127,
656     _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128,   656     _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128,
657     _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129,   657     _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129,
658     _CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130,   658     _CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130,
659     _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131,   659     _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131,
660     _CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132,   660     _CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132,
661     _CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133,   661     _CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133,
662     _CS_POSIX_V7_ILP32_OFF32_LIBS = 1134,   662     _CS_POSIX_V7_ILP32_OFF32_LIBS = 1134,
663     _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135,   663     _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135,
664     _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136,   664     _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136,
665     _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137,   665     _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137,
666     _CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138,   666     _CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138,
667     _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139,   667     _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139,
668     _CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140,   668     _CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140,
669     _CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141,   669     _CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141,
670     _CS_POSIX_V7_LP64_OFF64_LIBS = 1142,   670     _CS_POSIX_V7_LP64_OFF64_LIBS = 1142,
671     _CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143,   671     _CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143,
672     _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144,   672     _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144,
673     _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145,   673     _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145,
674     _CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146,   674     _CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146,
675     _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147,   675     _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147,
676     _CS_V6_ENV = 1148,   676     _CS_V6_ENV = 1148,
677     _CS_V7_ENV = 1149   677     _CS_V7_ENV = 1149
678 } ;   678 } ;
679 typedef signed char int8;   679 typedef signed char int8;
680 typedef unsigned char uint8;   680 typedef unsigned char uint8;
681 typedef short int16;   681 typedef short int16;
682 typedef unsigned short uint16;   682 typedef unsigned short uint16;
683 typedef int int32;   683 typedef int int32;
684 typedef unsigned int uint32;   684 typedef unsigned int uint32;
685 typedef long long int64;   685 typedef long long int64;
686 typedef unsigned long long uint64;   686 typedef unsigned long long uint64;
687 typedef int uint16_vap;   687 typedef int uint16_vap;
688 struct __anonstruct_TIFFHeaderCommon_30 {   688 struct __anonstruct_TIFFHeaderCommon_30 {
689    uint16 tiff_magic ;   689    uint16 tiff_magic ;
690    uint16 tiff_version ;   690    uint16 tiff_version ;
691 };   691 };
692 typedef struct __anonstruct_TIFFHeaderCommon_30 TIFFHeaderCommon;   692 typedef struct __anonstruct_TIFFHeaderCommon_30 TIFFHeaderCommon;
693 struct __anonstruct_TIFFHeaderClassic_31 {   693 struct __anonstruct_TIFFHeaderClassic_31 {
694    uint16 tiff_magic ;   694    uint16 tiff_magic ;
695    uint16 tiff_version ;   695    uint16 tiff_version ;
696    uint32 tiff_diroff ;   696    uint32 tiff_diroff ;
697 };   697 };
698 typedef struct __anonstruct_TIFFHeaderClassic_31 TIFFHeaderClassic;   698 typedef struct __anonstruct_TIFFHeaderClassic_31 TIFFHeaderClassic;
699 struct __anonstruct_TIFFHeaderBig_32 {   699 struct __anonstruct_TIFFHeaderBig_32 {
700    uint16 tiff_magic ;   700    uint16 tiff_magic ;
701    uint16 tiff_version ;   701    uint16 tiff_version ;
702    uint16 tiff_offsetsize ;   702    uint16 tiff_offsetsize ;
703    uint16 tiff_unused ;   703    uint16 tiff_unused ;
704    uint64 tiff_diroff ;   704    uint64 tiff_diroff ;
705 };   705 };
706 typedef struct __anonstruct_TIFFHeaderBig_32 TIFFHeaderBig;   706 typedef struct __anonstruct_TIFFHeaderBig_32 TIFFHeaderBig;
707 enum __anonenum_TIFFDataType_33 {   707 enum __anonenum_TIFFDataType_33 {
708     TIFF_NOTYPE = 0,   708     TIFF_NOTYPE = 0,
709     TIFF_BYTE = 1,   709     TIFF_BYTE = 1,
710     TIFF_ASCII = 2,   710     TIFF_ASCII = 2,
711     TIFF_SHORT = 3,   711     TIFF_SHORT = 3,
712     TIFF_LONG = 4,   712     TIFF_LONG = 4,
713     TIFF_RATIONAL = 5,   713     TIFF_RATIONAL = 5,
714     TIFF_SBYTE = 6,   714     TIFF_SBYTE = 6,
715     TIFF_UNDEFINED = 7,   715     TIFF_UNDEFINED = 7,
716     TIFF_SSHORT = 8,   716     TIFF_SSHORT = 8,
717     TIFF_SLONG = 9,   717     TIFF_SLONG = 9,
718     TIFF_SRATIONAL = 10,   718     TIFF_SRATIONAL = 10,
719     TIFF_FLOAT = 11,   719     TIFF_FLOAT = 11,
720     TIFF_DOUBLE = 12,   720     TIFF_DOUBLE = 12,
721     TIFF_IFD = 13,   721     TIFF_IFD = 13,
722     TIFF_LONG8 = 16,   722     TIFF_LONG8 = 16,
723     TIFF_SLONG8 = 17,   723     TIFF_SLONG8 = 17,
724     TIFF_IFD8 = 18   724     TIFF_IFD8 = 18
725 } ;   725 } ;
726 typedef enum __anonenum_TIFFDataType_33 TIFFDataType;   726 typedef enum __anonenum_TIFFDataType_33 TIFFDataType;
727 struct tiff;   727 struct tiff;
728 typedef struct tiff TIFF;   728 typedef struct tiff TIFF;
729 typedef long tmsize_t;   729 typedef long tmsize_t;
730 typedef uint64 toff_t;   730 typedef uint64 toff_t;
731 typedef uint32 ttag_t;   731 typedef uint32 ttag_t;
732 typedef uint16 tdir_t;   732 typedef uint16 tdir_t;
733 typedef uint16 tsample_t;   733 typedef uint16 tsample_t;
734 typedef uint32 tstrile_t;   734 typedef uint32 tstrile_t;
735 typedef tstrile_t tstrip_t;   735 typedef tstrile_t tstrip_t;
736 typedef tstrile_t ttile_t;   736 typedef tstrile_t ttile_t;
737 typedef tmsize_t tsize_t;   737 typedef tmsize_t tsize_t;
738 typedef void *tdata_t;   738 typedef void *tdata_t;
739 typedef void *thandle_t;   739 typedef void *thandle_t;
740 typedef unsigned char TIFFRGBValue;   740 typedef unsigned char TIFFRGBValue;
741 struct __anonstruct_TIFFDisplay_34 {   741 struct __anonstruct_TIFFDisplay_34 {
742    float d_mat[3][3] ;   742    float d_mat[3][3] ;
743    float d_YCR ;   743    float d_YCR ;
744    float d_YCG ;   744    float d_YCG ;
745    float d_YCB ;   745    float d_YCB ;
746    uint32 d_Vrwr ;   746    uint32 d_Vrwr ;
747    uint32 d_Vrwg ;   747    uint32 d_Vrwg ;
748    uint32 d_Vrwb ;   748    uint32 d_Vrwb ;
749    float d_Y0R ;   749    float d_Y0R ;
750    float d_Y0G ;   750    float d_Y0G ;
751    float d_Y0B ;   751    float d_Y0B ;
752    float d_gammaR ;   752    float d_gammaR ;
753    float d_gammaG ;   753    float d_gammaG ;
754    float d_gammaB ;   754    float d_gammaB ;
755 };   755 };
756 typedef struct __anonstruct_TIFFDisplay_34 TIFFDisplay;   756 typedef struct __anonstruct_TIFFDisplay_34 TIFFDisplay;
757 struct __anonstruct_TIFFYCbCrToRGB_35 {   757 struct __anonstruct_TIFFYCbCrToRGB_35 {
758    TIFFRGBValue *clamptab ;   758    TIFFRGBValue *clamptab ;
759    int *Cr_r_tab ;   759    int *Cr_r_tab ;
760    int *Cb_b_tab ;   760    int *Cb_b_tab ;
761    int32 *Cr_g_tab ;   761    int32 *Cr_g_tab ;
762    int32 *Cb_g_tab ;   762    int32 *Cb_g_tab ;
763    int32 *Y_tab ;   763    int32 *Y_tab ;
764 };   764 };
765 typedef struct __anonstruct_TIFFYCbCrToRGB_35 TIFFYCbCrToRGB;   765 typedef struct __anonstruct_TIFFYCbCrToRGB_35 TIFFYCbCrToRGB;
766 struct __anonstruct_TIFFCIELabToRGB_36 {   766 struct __anonstruct_TIFFCIELabToRGB_36 {
767    int range ;   767    int range ;
768    float rstep ;   768    float rstep ;
769    float gstep ;   769    float gstep ;
770    float bstep ;   770    float bstep ;
771    float X0 ;   771    float X0 ;
772    float Y0 ;   772    float Y0 ;
773    float Z0 ;   773    float Z0 ;
774    TIFFDisplay display ;   774    TIFFDisplay display ;
775    float Yr2r[1501] ;   775    float Yr2r[1501] ;
776    float Yg2g[1501] ;   776    float Yg2g[1501] ;
777    float Yb2b[1501] ;   777    float Yb2b[1501] ;
778 };   778 };
779 typedef struct __anonstruct_TIFFCIELabToRGB_36 TIFFCIELabToRGB;   779 typedef struct __anonstruct_TIFFCIELabToRGB_36 TIFFCIELabToRGB;
780 struct _TIFFRGBAImage;   780 struct _TIFFRGBAImage;
781 typedef struct _TIFFRGBAImage TIFFRGBAImage;   781 typedef struct _TIFFRGBAImage TIFFRGBAImage;
782 typedef void (*tileContigRoutine)(TIFFRGBAImage * , uint32 * , uint32  ,   782 typedef void (*tileContigRoutine)(TIFFRGBAImage * , uint32 * , uint32  ,
783                                   uint32  , uint32  , uint32  , int32  ,   783                                   uint32  , uint32  , uint32  , int32  ,
784                                   int32  , unsigned char * );   784                                   int32  , unsigned char * );
785 typedef void (*tileSeparateRoutine)(TIFFRGBAImage * , uint32 * , uint32  ,   785 typedef void (*tileSeparateRoutine)(TIFFRGBAImage * , uint32 * , uint32  ,
786                                     uint32  , uint32  , uint32  , int32  ,   786                                     uint32  , uint32  , uint32  , int32  ,
787                                     int32  , unsigned char * , unsigned char * ,   787                                     int32  , unsigned char * , unsigned char * ,
788                                     unsigned char * , unsigned char * );   788                                     unsigned char * , unsigned char * );
789 union __anonunion_put_37 {   789 union __anonunion_put_37 {
790    void (*any)(TIFFRGBAImage * ) ;   790    void (*any)(TIFFRGBAImage * ) ;
791    void (*contig)(TIFFRGBAImage * , uint32 * , uint32  , uint32  , uint32  ,   791    void (*contig)(TIFFRGBAImage * , uint32 * , uint32  , uint32  , uint32  ,
792                   uint32  , int32  , int32  , unsigned char * ) ;   792                   uint32  , int32  , int32  , unsigned char * ) ;
793    void (*separate)(TIFFRGBAImage * , uint32 * , uint32  , uint32  , uint32  ,   793    void (*separate)(TIFFRGBAImage * , uint32 * , uint32  , uint32  , uint32  ,
794                     uint32  , int32  , int32  , unsigned char * ,   794                     uint32  , int32  , int32  , unsigned char * ,
795                     unsigned char * , unsigned char * , unsigned char * ) ;   795                     unsigned char * , unsigned char * , unsigned char * ) ;
796 };   796 };
797 struct _TIFFRGBAImage {   797 struct _TIFFRGBAImage {
798    TIFF *tif ;   798    TIFF *tif ;
799    int stoponerr ;   799    int stoponerr ;
800    int isContig ;   800    int isContig ;
801    int alpha ;   801    int alpha ;
802    uint32 width ;   802    uint32 width ;
803    uint32 height ;   803    uint32 height ;
804    uint16 bitspersample ;   804    uint16 bitspersample ;
805    uint16 samplesperpixel ;   805    uint16 samplesperpixel ;
806    uint16 orientation ;   806    uint16 orientation ;
807    uint16 req_orientation ;   807    uint16 req_orientation ;
808    uint16 photometric ;   808    uint16 photometric ;
809    uint16 *redcmap ;   809    uint16 *redcmap ;
810    uint16 *greencmap ;   810    uint16 *greencmap ;
811    uint16 *bluecmap ;   811    uint16 *bluecmap ;
812    int (*get)(TIFFRGBAImage * , uint32 * , uint32  , uint32  ) ;   812    int (*get)(TIFFRGBAImage * , uint32 * , uint32  , uint32  ) ;
813    union __anonunion_put_37 put ;   813    union __anonunion_put_37 put ;
814    TIFFRGBValue *Map ;   814    TIFFRGBValue *Map ;
815    uint32 **BWmap ;   815    uint32 **BWmap ;
816    uint32 **PALmap ;   816    uint32 **PALmap ;
817    TIFFYCbCrToRGB *ycbcr ;   817    TIFFYCbCrToRGB *ycbcr ;
818    TIFFCIELabToRGB *cielab ;   818    TIFFCIELabToRGB *cielab ;
819    uint8 *UaToAa ;   819    uint8 *UaToAa ;
820    uint8 *Bitdepth16To8 ;   820    uint8 *Bitdepth16To8 ;
821    int row_offset ;   821    int row_offset ;
822    int col_offset ;   822    int col_offset ;
823 };   823 };
824 typedef int (*TIFFInitMethod)(TIFF * , int  );   824 typedef int (*TIFFInitMethod)(TIFF * , int  );
825 struct __anonstruct_TIFFCodec_38 {   825 struct __anonstruct_TIFFCodec_38 {
826    char *name ;   826    char *name ;
827    uint16 scheme ;   827    uint16 scheme ;
828    int (*init)(TIFF * , int  ) ;   828    int (*init)(TIFF * , int  ) ;
829 };   829 };
830 typedef struct __anonstruct_TIFFCodec_38 TIFFCodec;   830 typedef struct __anonstruct_TIFFCodec_38 TIFFCodec;
831 typedef void (*TIFFErrorHandler)(char const   * , char const   * , va_list  );   831 typedef void (*TIFFErrorHandler)(char const   * , char const   * , va_list  );
832 typedef void (*TIFFErrorHandlerExt)(thandle_t  , char const   * ,   832 typedef void (*TIFFErrorHandlerExt)(thandle_t  , char const   * ,
833                                     char const   * , va_list  );   833                                     char const   * , va_list  );
834 typedef tmsize_t (*TIFFReadWriteProc)(thandle_t  , void * , tmsize_t  );   834 typedef tmsize_t (*TIFFReadWriteProc)(thandle_t  , void * , tmsize_t  );
835 typedef toff_t (*TIFFSeekProc)(thandle_t  , toff_t  , int  );   835 typedef toff_t (*TIFFSeekProc)(thandle_t  , toff_t  , int  );
836 typedef int (*TIFFCloseProc)(thandle_t  );   836 typedef int (*TIFFCloseProc)(thandle_t  );
837 typedef toff_t (*TIFFSizeProc)(thandle_t  );   837 typedef toff_t (*TIFFSizeProc)(thandle_t  );
838 typedef int (*TIFFMapFileProc)(thandle_t  , void **base , toff_t *size );   838 typedef int (*TIFFMapFileProc)(thandle_t  , void **base , toff_t *size );
839 typedef void (*TIFFUnmapFileProc)(thandle_t  , void *base , toff_t size );   839 typedef void (*TIFFUnmapFileProc)(thandle_t  , void *base , toff_t size );
840 typedef void (*TIFFExtendProc)(TIFF * );   840 typedef void (*TIFFExtendProc)(TIFF * );
841 struct _TIFFField;   841 struct _TIFFField;
842 typedef struct _TIFFField TIFFField;   842 typedef struct _TIFFField TIFFField;
843 struct _TIFFFieldArray;   843 struct _TIFFFieldArray;
844 typedef struct _TIFFFieldArray TIFFFieldArray;   844 typedef struct _TIFFFieldArray TIFFFieldArray;
845 typedef int (*TIFFVSetMethod)(TIFF * , uint32  , va_list  );   845 typedef int (*TIFFVSetMethod)(TIFF * , uint32  , va_list  );
846 typedef int (*TIFFVGetMethod)(TIFF * , uint32  , va_list  );   846 typedef int (*TIFFVGetMethod)(TIFF * , uint32  , va_list  );
847 typedef void (*TIFFPrintMethod)(TIFF * , FILE * , long  );   847 typedef void (*TIFFPrintMethod)(TIFF * , FILE * , long  );
848 struct __anonstruct_TIFFTagMethods_39 {   848 struct __anonstruct_TIFFTagMethods_39 {
849    int (*vsetfield)(TIFF * , uint32  , va_list  ) ;   849    int (*vsetfield)(TIFF * , uint32  , va_list  ) ;
850    int (*vgetfield)(TIFF * , uint32  , va_list  ) ;   850    int (*vgetfield)(TIFF * , uint32  , va_list  ) ;
851    void (*printdir)(TIFF * , FILE * , long  ) ;   851    void (*printdir)(TIFF * , FILE * , long  ) ;
852 };   852 };
853 typedef struct __anonstruct_TIFFTagMethods_39 TIFFTagMethods;   853 typedef struct __anonstruct_TIFFTagMethods_39 TIFFTagMethods;
854 struct __anonstruct_TIFFFieldInfo_40 {   854 struct __anonstruct_TIFFFieldInfo_40 {
855    ttag_t field_tag ;   855    ttag_t field_tag ;
856    short field_readcount ;   856    short field_readcount ;
857    short field_writecount ;   857    short field_writecount ;
858    TIFFDataType field_type ;   858    TIFFDataType field_type ;
859    unsigned short field_bit ;   859    unsigned short field_bit ;
860    unsigned char field_oktochange ;   860    unsigned char field_oktochange ;
861    unsigned char field_passcount ;   861    unsigned char field_passcount ;
862    char *field_name ;   862    char *field_name ;
863 };   863 };
864 typedef struct __anonstruct_TIFFFieldInfo_40 TIFFFieldInfo;   864 typedef struct __anonstruct_TIFFFieldInfo_40 TIFFFieldInfo;
865 struct cpTag {   865 struct cpTag {
866    uint16 tag ;   866    uint16 tag ;
867    uint16 count ;   867    uint16 count ;
868    TIFFDataType type ;   868    TIFFDataType type ;
869 };   869 };
870 typedef int (*copyFunc)(TIFF *in , TIFF *out , uint32 l , uint32 w ,   870 typedef int (*copyFunc)(TIFF *in , TIFF *out , uint32 l , uint32 w ,
871                         uint16 samplesperpixel );   871                         uint16 samplesperpixel );
872 typedef int (*readFunc)(TIFF * , uint8 * , uint32  , uint32  , tsample_t  );   872 typedef int (*readFunc)(TIFF * , uint8 * , uint32  , uint32  , tsample_t  );
873 typedef int (*writeFunc)(TIFF * , uint8 * , uint32  , uint32  , tsample_t  );   873 typedef int (*writeFunc)(TIFF * , uint8 * , uint32  , uint32  , tsample_t  );
874 typedef void biasFn(void *image , void *bias , uint32 pixels );   874 typedef void biasFn(void *image , void *bias , uint32 pixels );
875 extern struct _IO_FILE_plus _IO_2_1_stdin_ ;   875 extern struct _IO_FILE_plus _IO_2_1_stdin_ ;
876 extern struct _IO_FILE_plus _IO_2_1_stdout_ ;   876 extern struct _IO_FILE_plus _IO_2_1_stdout_ ;
877 extern struct _IO_FILE_plus _IO_2_1_stderr_ ;   877 extern struct _IO_FILE_plus _IO_2_1_stderr_ ;
878 extern int __underflow(_IO_FILE * ) ;   878 extern int __underflow(_IO_FILE * ) ;
879 extern int __uflow(_IO_FILE * ) ;   879 extern int __uflow(_IO_FILE * ) ;
880 extern int __overflow(_IO_FILE * , int  ) ;   880 extern int __overflow(_IO_FILE * , int  ) ;
881 extern int _IO_getc(_IO_FILE *__fp ) ;   881 extern int _IO_getc(_IO_FILE *__fp ) ;
882 extern int _IO_putc(int __c , _IO_FILE *__fp ) ;   882 extern int _IO_putc(int __c , _IO_FILE *__fp ) ;
883 extern  __attribute__((__nothrow__)) int _IO_feof(_IO_FILE *__fp ) ;   883 extern  __attribute__((__nothrow__)) int _IO_feof(_IO_FILE *__fp ) ;
884 extern  __attribute__((__nothrow__)) int _IO_ferror(_IO_FILE *__fp ) ;   884 extern  __attribute__((__nothrow__)) int _IO_ferror(_IO_FILE *__fp ) ;
885 extern int _IO_peekc_locked(_IO_FILE *__fp ) ;   885 extern int _IO_peekc_locked(_IO_FILE *__fp ) ;
886 extern  __attribute__((__nothrow__)) void _IO_flockfile(_IO_FILE * ) ;   886 extern  __attribute__((__nothrow__)) void _IO_flockfile(_IO_FILE * ) ;
887 extern  __attribute__((__nothrow__)) void _IO_funlockfile(_IO_FILE * ) ;   887 extern  __attribute__((__nothrow__)) void _IO_funlockfile(_IO_FILE * ) ;
888 extern  __attribute__((__nothrow__)) int _IO_ftrylockfile(_IO_FILE * ) ;   888 extern  __attribute__((__nothrow__)) int _IO_ftrylockfile(_IO_FILE * ) ;
889 extern int _IO_vfscanf(_IO_FILE * __restrict   , char const   * __restrict   ,   889 extern int _IO_vfscanf(_IO_FILE * __restrict   , char const   * __restrict   ,
890                        __gnuc_va_list  , int * __restrict   ) ;   890                        __gnuc_va_list  , int * __restrict   ) ;
891 extern int _IO_vfprintf(_IO_FILE * __restrict   , char const   * __restrict   ,   891 extern int _IO_vfprintf(_IO_FILE * __restrict   , char const   * __restrict   ,
892                         __gnuc_va_list  ) ;   892                         __gnuc_va_list  ) ;
893 extern __ssize_t _IO_padn(_IO_FILE * , int  , __ssize_t  ) ;   893 extern __ssize_t _IO_padn(_IO_FILE * , int  , __ssize_t  ) ;
894 extern size_t _IO_sgetn(_IO_FILE * , void * , size_t  ) ;   894 extern size_t _IO_sgetn(_IO_FILE * , void * , size_t  ) ;
895 extern __off64_t _IO_seekoff(_IO_FILE * , __off64_t  , int  , int  ) ;   895 extern __off64_t _IO_seekoff(_IO_FILE * , __off64_t  , int  , int  ) ;
896 extern __off64_t _IO_seekpos(_IO_FILE * , __off64_t  , int  ) ;   896 extern __off64_t _IO_seekpos(_IO_FILE * , __off64_t  , int  ) ;
897 extern  __attribute__((__nothrow__)) void _IO_free_backup_area(_IO_FILE * ) ;   897 extern  __attribute__((__nothrow__)) void _IO_free_backup_area(_IO_FILE * ) ;
898 extern struct _IO_FILE *stdin ;   898 extern struct _IO_FILE *stdin ;
899 extern struct _IO_FILE *stdout ;   899 extern struct _IO_FILE *stdout ;
900 extern struct _IO_FILE *stderr ;   900 extern struct _IO_FILE *stderr ;
901 extern  __attribute__((__nothrow__)) int remove(char const   *__filename ) ;   901 extern  __attribute__((__nothrow__)) int remove(char const   *__filename ) ;
902 extern  __attribute__((__nothrow__)) int rename(char const   *__old ,   902 extern  __attribute__((__nothrow__)) int rename(char const   *__old ,
903                                                 char const   *__new ) ;   903                                                 char const   *__new ) ;
904 extern  __attribute__((__nothrow__)) int renameat(int __oldfd ,   904 extern  __attribute__((__nothrow__)) int renameat(int __oldfd ,
905                                                   char const   *__old ,   905                                                   char const   *__old ,
906                                                   int __newfd ,   906                                                   int __newfd ,
907                                                   char const   *__new ) ;   907                                                   char const   *__new ) ;
908 extern FILE *tmpfile(void)  __asm__("tmpfile64")  ;   908 extern FILE *tmpfile(void)  __asm__("tmpfile64")  ;
909 extern  __attribute__((__nothrow__)) char *tmpnam(char *__s ) ;   909 extern  __attribute__((__nothrow__)) char *tmpnam(char *__s ) ;
910 extern  __attribute__((__nothrow__)) char *tmpnam_r(char *__s ) ;   910 extern  __attribute__((__nothrow__)) char *tmpnam_r(char *__s ) ;
911 extern  __attribute__((__nothrow__)) char *tempnam(char const   *__dir ,   911 extern  __attribute__((__nothrow__)) char *tempnam(char const   *__dir ,
912                                                    char const   *__pfx )  __attribute__((__malloc__)) ;   912                                                    char const   *__pfx )  __attribute__((__malloc__)) ;
913 extern int fclose(FILE *__stream ) ;   913 extern int fclose(FILE *__stream ) ;
914 extern int fflush(FILE *__stream ) ;   914 extern int fflush(FILE *__stream ) ;
915 extern int fflush_unlocked(FILE *__stream ) ;   915 extern int fflush_unlocked(FILE *__stream ) ;
916 extern FILE *fopen(char const   * __restrict  __filename ,   916 extern FILE *fopen(char const   * __restrict  __filename ,
917                    char const   * __restrict  __modes )  __asm__("fopen64")  ;   917                    char const   * __restrict  __modes )  __asm__("fopen64")  ;
918 extern FILE *freopen(char const   * __restrict  __filename ,   918 extern FILE *freopen(char const   * __restrict  __filename ,
919                      char const   * __restrict  __modes ,   919                      char const   * __restrict  __modes ,
920                      FILE * __restrict  __stream )  __asm__("freopen64")  ;   920                      FILE * __restrict  __stream )  __asm__("freopen64")  ;
921 extern  __attribute__((__nothrow__)) FILE *fdopen(int __fd ,   921 extern  __attribute__((__nothrow__)) FILE *fdopen(int __fd ,
922                                                   char const   *__modes ) ;   922                                                   char const   *__modes ) ;
923 extern  __attribute__((__nothrow__)) FILE *fmemopen(void *__s , size_t __len ,   923 extern  __attribute__((__nothrow__)) FILE *fmemopen(void *__s , size_t __len ,
924                                                     char const   *__modes ) ;   924                                                     char const   *__modes ) ;
925 extern  __attribute__((__nothrow__)) FILE *open_memstream(char **__bufloc ,   925 extern  __attribute__((__nothrow__)) FILE *open_memstream(char **__bufloc ,
926                                                           size_t *__sizeloc ) ;   926                                                           size_t *__sizeloc ) ;
927 extern  __attribute__((__nothrow__)) void setbuf(FILE * __restrict  __stream ,   927 extern  __attribute__((__nothrow__)) void setbuf(FILE * __restrict  __stream ,
928                                                  char * __restrict  __buf ) ;   928                                                  char * __restrict  __buf ) ;
929 extern  __attribute__((__nothrow__)) int setvbuf(FILE * __restrict  __stream ,   929 extern  __attribute__((__nothrow__)) int setvbuf(FILE * __restrict  __stream ,
930                                                  char * __restrict  __buf ,   930                                                  char * __restrict  __buf ,
931                                                  int __modes , size_t __n ) ;   931                                                  int __modes , size_t __n ) ;
932 extern  __attribute__((__nothrow__)) void setbuffer(FILE * __restrict  __stream ,   932 extern  __attribute__((__nothrow__)) void setbuffer(FILE * __restrict  __stream ,
933                                                     char * __restrict  __buf ,   933                                                     char * __restrict  __buf ,
934                                                     size_t __size ) ;   934                                                     size_t __size ) ;
935 extern  __attribute__((__nothrow__)) void setlinebuf(FILE *__stream ) ;   935 extern  __attribute__((__nothrow__)) void setlinebuf(FILE *__stream ) ;
936 extern int fprintf(FILE * __restrict  __stream ,   936 extern int fprintf(FILE * __restrict  __stream ,
937                    char const   * __restrict  __format  , ...) ;   937                    char const   * __restrict  __format  , ...) ;
938 extern int printf(char const   * __restrict  __format  , ...) ;   938 extern int printf(char const   * __restrict  __format  , ...) ;
939 extern  __attribute__((__nothrow__)) int sprintf(char * __restrict  __s ,   939 extern  __attribute__((__nothrow__)) int sprintf(char * __restrict  __s ,
940                                                  char const   * __restrict  __format   940                                                  char const   * __restrict  __format
941                                                  , ...) ;   941                                                  , ...) ;
942 extern int vfprintf(FILE * __restrict  __s ,   942 extern int vfprintf(FILE * __restrict  __s ,
943                     char const   * __restrict  __format , __gnuc_va_list __arg ) ;   943                     char const   * __restrict  __format , __gnuc_va_list __arg ) ;
944 __inline extern int vprintf(char const   * __restrict  __fmt ,   944 __inline extern int vprintf(char const   * __restrict  __fmt ,
945                             __gnuc_va_list __arg ) ;   945                             __gnuc_va_list __arg ) ;
946 extern  __attribute__((__nothrow__)) int vsprintf(char * __restrict  __s ,   946 extern  __attribute__((__nothrow__)) int vsprintf(char * __restrict  __s ,
947                                                   char const   * __restrict  __format ,   947                                                   char const   * __restrict  __format ,
948                                                   __gnuc_va_list __arg ) ;   948                                                   __gnuc_va_list __arg ) ;
949 extern  __attribute__((__nothrow__)) int ( /* format attribute */  snprintf)(char * __restrict  __s ,   949 extern  __attribute__((__nothrow__)) int ( /* format attribute */  snprintf)(char * __restrict  __s ,
950                                                                              size_t __maxlen ,   950                                                                              size_t __maxlen ,
951                                                                              char const   * __restrict  __format   951                                                                              char const   * __restrict  __format
952                                                                              , ...) ;   952                                                                              , ...) ;
953 extern  __attribute__((__nothrow__)) int ( /* format attribute */  vsnprintf)(char * __restrict  __s ,   953 extern  __attribute__((__nothrow__)) int ( /* format attribute */  vsnprintf)(char * __restrict  __s ,
954                                                                               size_t __maxlen ,   954                                                                               size_t __maxlen ,
955                                                                               char const   * __restrict  __format ,   955                                                                               char const   * __restrict  __format ,
956                                                                               __gnuc_va_list __arg ) ;   956                                                                               __gnuc_va_list __arg ) ;
957 extern int ( /* format attribute */  vdprintf)(int __fd ,   957 extern int ( /* format attribute */  vdprintf)(int __fd ,
958                                                char const   * __restrict  __fmt ,   958                                                char const   * __restrict  __fmt ,
959                                                __gnuc_va_list __arg ) ;   959                                                __gnuc_va_list __arg ) ;
960 extern int ( /* format attribute */  dprintf)(int __fd ,   960 extern int ( /* format attribute */  dprintf)(int __fd ,
961                                               char const   * __restrict  __fmt   961                                               char const   * __restrict  __fmt
962                                               , ...) ;   962                                               , ...) ;
963 extern int fscanf(FILE * __restrict  __stream ,   963 extern int fscanf(FILE * __restrict  __stream ,
964                   char const   * __restrict  __format  , ...)  __asm__("__isoc99_fscanf")  ;   964                   char const   * __restrict  __format  , ...)  __asm__("__isoc99_fscanf")  ;
965 extern int scanf(char const   * __restrict  __format  , ...)  __asm__("__isoc99_scanf")  ;   965 extern int scanf(char const   * __restrict  __format  , ...)  __asm__("__isoc99_scanf")  ;
966 extern  __attribute__((__nothrow__)) int sscanf(char const   * __restrict  __s ,   966 extern  __attribute__((__nothrow__)) int sscanf(char const   * __restrict  __s ,
967                                                 char const   * __restrict  __format   967                                                 char const   * __restrict  __format
968                                                 , ...)  __asm__("__isoc99_sscanf")  ;   968                                                 , ...)  __asm__("__isoc99_sscanf")  ;
969 extern int ( /* format attribute */  vfscanf)(FILE * __restrict  __s ,   969 extern int ( /* format attribute */  vfscanf)(FILE * __restrict  __s ,
970                                               char const   * __restrict  __format ,   970                                               char const   * __restrict  __format ,
971                                               __gnuc_va_list __arg )  __asm__("__isoc99_vfscanf")  ;   971                                               __gnuc_va_list __arg )  __asm__("__isoc99_vfscanf")  ;
972 extern int ( /* format attribute */  vscanf)(char const   * __restrict  __format ,   972 extern int ( /* format attribute */  vscanf)(char const   * __restrict  __format ,
973                                              __gnuc_va_list __arg )  __asm__("__isoc99_vscanf")  ;   973                                              __gnuc_va_list __arg )  __asm__("__isoc99_vscanf")  ;
974 extern  __attribute__((__nothrow__)) int ( /* format attribute */  vsscanf)(char const   * __restrict  __s ,   974 extern  __attribute__((__nothrow__)) int ( /* format attribute */  vsscanf)(char const   * __restrict  __s ,
975                                                                             char const   * __restrict  __format ,   975                                                                             char const   * __restrict  __format ,
976                                                                             __gnuc_va_list __arg )  __asm__("__isoc99_vsscanf")  ;   976                                                                             __gnuc_va_list __arg )  __asm__("__isoc99_vsscanf")  ;
977 extern int fgetc(FILE *__stream ) ;   977 extern int fgetc(FILE *__stream ) ;
978 extern int getc(FILE *__stream ) ;   978 extern int getc(FILE *__stream ) ;
979 __inline extern int getchar(void) ;   979 __inline extern int getchar(void) ;
980 __inline extern int getc_unlocked(FILE *__fp ) ;   980 __inline extern int getc_unlocked(FILE *__fp ) ;
981 __inline extern int getchar_unlocked(void) ;   981 __inline extern int getchar_unlocked(void) ;
982 __inline extern int fgetc_unlocked(FILE *__fp ) ;   982 __inline extern int fgetc_unlocked(FILE *__fp ) ;
983 extern int fputc(int __c , FILE *__stream ) ;   983 extern int fputc(int __c , FILE *__stream ) ;
984 extern int putc(int __c , FILE *__stream ) ;   984 extern int putc(int __c , FILE *__stream ) ;
985 __inline extern int putchar(int __c ) ;   985 __inline extern int putchar(int __c ) ;
986 __inline extern int fputc_unlocked(int __c , FILE *__stream ) ;   986 __inline extern int fputc_unlocked(int __c , FILE *__stream ) ;
987 __inline extern int putc_unlocked(int __c , FILE *__stream ) ;   987 __inline extern int putc_unlocked(int __c , FILE *__stream ) ;
988 __inline extern int putchar_unlocked(int __c ) ;   988 __inline extern int putchar_unlocked(int __c ) ;
989 extern int getw(FILE *__stream ) ;   989 extern int getw(FILE *__stream ) ;
990 extern int putw(int __w , FILE *__stream ) ;   990 extern int putw(int __w , FILE *__stream ) ;
991 extern char *fgets(char * __restrict  __s , int __n ,   991 extern char *fgets(char * __restrict  __s , int __n ,
992                    FILE * __restrict  __stream ) ;   992                    FILE * __restrict  __stream ) ;
993 extern char *gets(char *__s ) ;   993 extern char *gets(char *__s ) ;
994 extern __ssize_t __getdelim(char ** __restrict  __lineptr ,   994 extern __ssize_t __getdelim(char ** __restrict  __lineptr ,
995                             size_t * __restrict  __n , int __delimiter ,   995                             size_t * __restrict  __n , int __delimiter ,
996                             FILE * __restrict  __stream ) ;   996                             FILE * __restrict  __stream ) ;
997 extern __ssize_t getdelim(char ** __restrict  __lineptr ,   997 extern __ssize_t getdelim(char ** __restrict  __lineptr ,
998                           size_t * __restrict  __n , int __delimiter ,   998                           size_t * __restrict  __n , int __delimiter ,
999                           FILE * __restrict  __stream ) ;   999                           FILE * __restrict  __stream ) ;
1000 extern __ssize_t getline(char ** __restrict  __lineptr ,   1000 extern __ssize_t getline(char ** __restrict  __lineptr ,
1001                          size_t * __restrict  __n , FILE * __restrict  __stream ) ;   1001                          size_t * __restrict  __n , FILE * __restrict  __stream ) ;
1002 extern int fputs(char const   * __restrict  __s , FILE * __restrict  __stream ) ;   1002 extern int fputs(char const   * __restrict  __s , FILE * __restrict  __stream ) ;
1003 extern int puts(char const   *__s ) ;   1003 extern int puts(char const   *__s ) ;
1004 extern int ungetc(int __c , FILE *__stream ) ;   1004 extern int ungetc(int __c , FILE *__stream ) ;
1005 extern size_t fread(void * __restrict  __ptr , size_t __size , size_t __n ,   1005 extern size_t fread(void * __restrict  __ptr , size_t __size , size_t __n ,
1006                     FILE * __restrict  __stream ) ;   1006                     FILE * __restrict  __stream ) ;
1007 extern size_t fwrite(void const   * __restrict  __ptr , size_t __size ,   1007 extern size_t fwrite(void const   * __restrict  __ptr , size_t __size ,
1008                      size_t __n , FILE * __restrict  __s ) ;   1008                      size_t __n , FILE * __restrict  __s ) ;
1009 extern size_t fread_unlocked(void * __restrict  __ptr , size_t __size ,   1009 extern size_t fread_unlocked(void * __restrict  __ptr , size_t __size ,
1010                              size_t __n , FILE * __restrict  __stream ) ;   1010                              size_t __n , FILE * __restrict  __stream ) ;
1011 extern size_t fwrite_unlocked(void const   * __restrict  __ptr , size_t __size ,   1011 extern size_t fwrite_unlocked(void const   * __restrict  __ptr , size_t __size ,
1012                               size_t __n , FILE * __restrict  __stream ) ;   1012                               size_t __n , FILE * __restrict  __stream ) ;
1013 extern int fseek(FILE *__stream , long __off , int __whence ) ;   1013 extern int fseek(FILE *__stream , long __off , int __whence ) ;
1014 extern long ftell(FILE *__stream ) ;   1014 extern long ftell(FILE *__stream ) ;
1015 extern void rewind(FILE *__stream ) ;   1015 extern void rewind(FILE *__stream ) ;
1016 extern int fseeko(FILE *__stream , __off64_t __off , int __whence )  __asm__("fseeko64")  ;   1016 extern int fseeko(FILE *__stream , __off64_t __off , int __whence )  __asm__("fseeko64")  ;
1017 extern __off64_t ftello(FILE *__stream )  __asm__("ftello64")  ;   1017 extern __off64_t ftello(FILE *__stream )  __asm__("ftello64")  ;
1018 extern int fgetpos(FILE * __restrict  __stream , fpos_t * __restrict  __pos )  __asm__("fgetpos64")  ;   1018 extern int fgetpos(FILE * __restrict  __stream , fpos_t * __restrict  __pos )  __asm__("fgetpos64")  ;
1019 extern int fsetpos(FILE *__stream , fpos_t const   *__pos )  __asm__("fsetpos64")  ;   1019 extern int fsetpos(FILE *__stream , fpos_t const   *__pos )  __asm__("fsetpos64")  ;
1020 extern  __attribute__((__nothrow__)) void clearerr(FILE *__stream ) ;   1020 extern  __attribute__((__nothrow__)) void clearerr(FILE *__stream ) ;
1021 extern  __attribute__((__nothrow__)) int feof(FILE *__stream ) ;   1021 extern  __attribute__((__nothrow__)) int feof(FILE *__stream ) ;
1022 extern  __attribute__((__nothrow__)) int ferror(FILE *__stream ) ;   1022 extern  __attribute__((__nothrow__)) int ferror(FILE *__stream ) ;
1023 extern  __attribute__((__nothrow__)) void clearerr_unlocked(FILE *__stream ) ;   1023 extern  __attribute__((__nothrow__)) void clearerr_unlocked(FILE *__stream ) ;
1024 __inline extern  __attribute__((__nothrow__)) int feof_unlocked(FILE *__stream ) ;   1024 __inline extern  __attribute__((__nothrow__)) int feof_unlocked(FILE *__stream ) ;
1025 __inline extern  __attribute__((__nothrow__)) int ferror_unlocked(FILE *__stream ) ;   1025 __inline extern  __attribute__((__nothrow__)) int ferror_unlocked(FILE *__stream ) ;
1026 extern void perror(char const   *__s ) ;   1026 extern void perror(char const   *__s ) ;
1027 extern int sys_nerr ;   1027 extern int sys_nerr ;
1028 extern char const   * const  sys_errlist[] ;   1028 extern char const   * const  sys_errlist[] ;
1029 extern  __attribute__((__nothrow__)) int fileno(FILE *__stream ) ;   1029 extern  __attribute__((__nothrow__)) int fileno(FILE *__stream ) ;
1030 extern  __attribute__((__nothrow__)) int fileno_unlocked(FILE *__stream ) ;   1030 extern  __attribute__((__nothrow__)) int fileno_unlocked(FILE *__stream ) ;
1031 extern FILE *popen(char const   *__command , char const   *__modes ) ;   1031 extern FILE *popen(char const   *__command , char const   *__modes ) ;
1032 extern int pclose(FILE *__stream ) ;   1032 extern int pclose(FILE *__stream ) ;
1033 extern  __attribute__((__nothrow__)) char *ctermid(char *__s ) ;   1033 extern  __attribute__((__nothrow__)) char *ctermid(char *__s ) ;
1034 extern  __attribute__((__nothrow__)) void flockfile(FILE *__stream ) ;   1034 extern  __attribute__((__nothrow__)) void flockfile(FILE *__stream ) ;
1035 extern  __attribute__((__nothrow__)) int ftrylockfile(FILE *__stream ) ;   1035 extern  __attribute__((__nothrow__)) int ftrylockfile(FILE *__stream ) ;
1036 extern  __attribute__((__nothrow__)) void funlockfile(FILE *__stream ) ;   1036 extern  __attribute__((__nothrow__)) void funlockfile(FILE *__stream ) ;
1037 __inline extern int vprintf(char const   * __restrict  __fmt ,   1037 __inline extern int vprintf(char const   * __restrict  __fmt ,
1038                             __gnuc_va_list __arg )   1038                             __gnuc_va_list __arg )
1039 {   1039 {
1040   int tmp ;   1040   int tmp ;
1041     1041  
1042   {   1042   {
1043   tmp = vfprintf((FILE */* __restrict  */)stdout, __fmt, __arg);   1043   tmp = vfprintf((FILE */* __restrict  */)stdout, __fmt, __arg);
1044   return (tmp);   1044   return (tmp);
1045 }   1045 }
1046 }   1046 }
1047 __inline extern int getchar(void)   1047 __inline extern int getchar(void)
1048 {   1048 {
1049   int tmp ;   1049   int tmp ;
1050     1050  
1051   {   1051   {
1052   tmp = _IO_getc(stdin);   1052   tmp = _IO_getc(stdin);
1053   return (tmp);   1053   return (tmp);
1054 }   1054 }
1055 }   1055 }
1056 __inline extern int fgetc_unlocked(FILE *__fp )   1056 __inline extern int fgetc_unlocked(FILE *__fp )
1057 {   1057 {
1058   long tmp ;   1058   long tmp ;
1059   int tmp___0 ;   1059   int tmp___0 ;
1060   char *tmp___1 ;   1060   char *tmp___1 ;
1061   int tmp___2 ;   1061   int tmp___2 ;
1062   long tmp___3 ;   1062   long tmp___3 ;
1063     1063  
1064   {   1064   {
1065   tmp___3 = __builtin_expect((long )((unsigned int )__fp->_IO_read_ptr >= (unsigned int )__fp->_IO_read_end),   1065   tmp___3 = __builtin_expect((long )((unsigned int )__fp->_IO_read_ptr >= (unsigned int )__fp->_IO_read_end),
1066                              0L);   1066                              0L);
1067   if (tmp___3) {   1067   if (tmp___3) {
1068     tmp___0 = __uflow(__fp);   1068     tmp___0 = __uflow(__fp);
1069     tmp___2 = tmp___0;   1069     tmp___2 = tmp___0;
1070   } else {   1070   } else {
1071     tmp___1 = __fp->_IO_read_ptr;   1071     tmp___1 = __fp->_IO_read_ptr;
1072     (__fp->_IO_read_ptr) ++;   1072     (__fp->_IO_read_ptr) ++;
1073     tmp___2 = (int )*((unsigned char *)tmp___1);   1073     tmp___2 = (int )*((unsigned char *)tmp___1);
1074   }   1074   }
1075   return (tmp___2);   1075   return (tmp___2);
1076 }   1076 }
1077 }   1077 }
1078 __inline extern int getc_unlocked(FILE *__fp )   1078 __inline extern int getc_unlocked(FILE *__fp )
1079 {   1079 {
1080   long tmp ;   1080   long tmp ;
1081   int tmp___0 ;   1081   int tmp___0 ;
1082   char *tmp___1 ;   1082   char *tmp___1 ;
1083   int tmp___2 ;   1083   int tmp___2 ;
1084   long tmp___3 ;   1084   long tmp___3 ;
1085     1085  
1086   {   1086   {
1087   tmp___3 = __builtin_expect((long )((unsigned int )__fp->_IO_read_ptr >= (unsigned int )__fp->_IO_read_end),   1087   tmp___3 = __builtin_expect((long )((unsigned int )__fp->_IO_read_ptr >= (unsigned int )__fp->_IO_read_end),
1088                              0L);   1088                              0L);
1089   if (tmp___3) {   1089   if (tmp___3) {
1090     tmp___0 = __uflow(__fp);   1090     tmp___0 = __uflow(__fp);
1091     tmp___2 = tmp___0;   1091     tmp___2 = tmp___0;
1092   } else {   1092   } else {
1093     tmp___1 = __fp->_IO_read_ptr;   1093     tmp___1 = __fp->_IO_read_ptr;
1094     (__fp->_IO_read_ptr) ++;   1094     (__fp->_IO_read_ptr) ++;
1095     tmp___2 = (int )*((unsigned char *)tmp___1);   1095     tmp___2 = (int )*((unsigned char *)tmp___1);
1096   }   1096   }
1097   return (tmp___2);   1097   return (tmp___2);
1098 }   1098 }
1099 }   1099 }
1100 __inline extern int getchar_unlocked(void)   1100 __inline extern int getchar_unlocked(void)
1101 {   1101 {
1102   long tmp ;   1102   long tmp ;
1103   int tmp___0 ;   1103   int tmp___0 ;
1104   char *tmp___1 ;   1104   char *tmp___1 ;
1105   int tmp___2 ;   1105   int tmp___2 ;
1106   long tmp___3 ;   1106   long tmp___3 ;
1107     1107  
1108   {   1108   {
1109   tmp___3 = __builtin_expect((long )((unsigned int )stdin->_IO_read_ptr >= (unsigned int )stdin->_IO_read_end),   1109   tmp___3 = __builtin_expect((long )((unsigned int )stdin->_IO_read_ptr >= (unsigned int )stdin->_IO_read_end),
1110                              0L);   1110                              0L);
1111   if (tmp___3) {   1111   if (tmp___3) {
1112     tmp___0 = __uflow(stdin);   1112     tmp___0 = __uflow(stdin);
1113     tmp___2 = tmp___0;   1113     tmp___2 = tmp___0;
1114   } else {   1114   } else {
1115     tmp___1 = stdin->_IO_read_ptr;   1115     tmp___1 = stdin->_IO_read_ptr;
1116     (stdin->_IO_read_ptr) ++;   1116     (stdin->_IO_read_ptr) ++;
1117     tmp___2 = (int )*((unsigned char *)tmp___1);   1117     tmp___2 = (int )*((unsigned char *)tmp___1);
1118   }   1118   }
1119   return (tmp___2);   1119   return (tmp___2);
1120 }   1120 }
1121 }   1121 }
1122 __inline extern int putchar(int __c )   1122 __inline extern int putchar(int __c )
1123 {   1123 {
1124   int tmp ;   1124   int tmp ;
1125     1125  
1126   {   1126   {
1127   tmp = _IO_putc(__c, stdout);   1127   tmp = _IO_putc(__c, stdout);
1128   return (tmp);   1128   return (tmp);
1129 }   1129 }
1130 }   1130 }
1131 __inline extern int fputc_unlocked(int __c , FILE *__stream )   1131 __inline extern int fputc_unlocked(int __c , FILE *__stream )
1132 {   1132 {
1133   long tmp ;   1133   long tmp ;
1134   int tmp___0 ;   1134   int tmp___0 ;
1135   char *tmp___1 ;   1135   char *tmp___1 ;
1136   char tmp___2 ;   1136   char tmp___2 ;
1137   int tmp___3 ;   1137   int tmp___3 ;
1138   long tmp___4 ;   1138   long tmp___4 ;
1139     1139  
1140   {   1140   {
1141   tmp___4 = __builtin_expect((long )((unsigned int )__stream->_IO_write_ptr >= (unsigned int )__stream->_IO_write_end),   1141   tmp___4 = __builtin_expect((long )((unsigned int )__stream->_IO_write_ptr >= (unsigned int )__stream->_IO_write_end),
1142                              0L);   1142                              0L);
1143   if (tmp___4) {   1143   if (tmp___4) {
1144     tmp___0 = __overflow(__stream, (int )((unsigned char )__c));   1144     tmp___0 = __overflow(__stream, (int )((unsigned char )__c));
1145     tmp___3 = tmp___0;   1145     tmp___3 = tmp___0;
1146   } else {   1146   } else {
1147     tmp___1 = __stream->_IO_write_ptr;   1147     tmp___1 = __stream->_IO_write_ptr;
1148     (__stream->_IO_write_ptr) ++;   1148     (__stream->_IO_write_ptr) ++;
1149     tmp___2 = (char )__c;   1149     tmp___2 = (char )__c;
1150     *tmp___1 = tmp___2;   1150     *tmp___1 = tmp___2;
1151     tmp___3 = (int )((unsigned char )tmp___2);   1151     tmp___3 = (int )((unsigned char )tmp___2);
1152   }   1152   }
1153   return (tmp___3);   1153   return (tmp___3);
1154 }   1154 }
1155 }   1155 }
1156 __inline extern int putc_unlocked(int __c , FILE *__stream )   1156 __inline extern int putc_unlocked(int __c , FILE *__stream )
1157 {   1157 {
1158   long tmp ;   1158   long tmp ;
1159   int tmp___0 ;   1159   int tmp___0 ;
1160   char *tmp___1 ;   1160   char *tmp___1 ;
1161   char tmp___2 ;   1161   char tmp___2 ;
1162   int tmp___3 ;   1162   int tmp___3 ;
1163   long tmp___4 ;   1163   long tmp___4 ;
1164     1164  
1165   {   1165   {
1166   tmp___4 = __builtin_expect((long )((unsigned int )__stream->_IO_write_ptr >= (unsigned int )__stream->_IO_write_end),   1166   tmp___4 = __builtin_expect((long )((unsigned int )__stream->_IO_write_ptr >= (unsigned int )__stream->_IO_write_end),
1167                              0L);   1167                              0L);
1168   if (tmp___4) {   1168   if (tmp___4) {
1169     tmp___0 = __overflow(__stream, (int )((unsigned char )__c));   1169     tmp___0 = __overflow(__stream, (int )((unsigned char )__c));
1170     tmp___3 = tmp___0;   1170     tmp___3 = tmp___0;
1171   } else {   1171   } else {
1172     tmp___1 = __stream->_IO_write_ptr;   1172     tmp___1 = __stream->_IO_write_ptr;
1173     (__stream->_IO_write_ptr) ++;   1173     (__stream->_IO_write_ptr) ++;
1174     tmp___2 = (char )__c;   1174     tmp___2 = (char )__c;
1175     *tmp___1 = tmp___2;   1175     *tmp___1 = tmp___2;
1176     tmp___3 = (int )((unsigned char )tmp___2);   1176     tmp___3 = (int )((unsigned char )tmp___2);
1177   }   1177   }
1178   return (tmp___3);   1178   return (tmp___3);
1179 }   1179 }
1180 }   1180 }
1181 __inline extern int putchar_unlocked(int __c )   1181 __inline extern int putchar_unlocked(int __c )
1182 {   1182 {
1183   long tmp ;   1183   long tmp ;
1184   int tmp___0 ;   1184   int tmp___0 ;
1185   char *tmp___1 ;   1185   char *tmp___1 ;
1186   char tmp___2 ;   1186   char tmp___2 ;
1187   int tmp___3 ;   1187   int tmp___3 ;
1188   long tmp___4 ;   1188   long tmp___4 ;
1189     1189  
1190   {   1190   {
1191   tmp___4 = __builtin_expect((long )((unsigned int )stdout->_IO_write_ptr >= (unsigned int )stdout->_IO_write_end),   1191   tmp___4 = __builtin_expect((long )((unsigned int )stdout->_IO_write_ptr >= (unsigned int )stdout->_IO_write_end),
1192                              0L);   1192                              0L);
1193   if (tmp___4) {   1193   if (tmp___4) {
1194     tmp___0 = __overflow(stdout, (int )((unsigned char )__c));   1194     tmp___0 = __overflow(stdout, (int )((unsigned char )__c));
1195     tmp___3 = tmp___0;   1195     tmp___3 = tmp___0;
1196   } else {   1196   } else {
1197     tmp___1 = stdout->_IO_write_ptr;   1197     tmp___1 = stdout->_IO_write_ptr;
1198     (stdout->_IO_write_ptr) ++;   1198     (stdout->_IO_write_ptr) ++;
1199     tmp___2 = (char )__c;   1199     tmp___2 = (char )__c;
1200     *tmp___1 = tmp___2;   1200     *tmp___1 = tmp___2;
1201     tmp___3 = (int )((unsigned char )tmp___2);   1201     tmp___3 = (int )((unsigned char )tmp___2);
1202   }   1202   }
1203   return (tmp___3);   1203   return (tmp___3);
1204 }   1204 }
1205 }   1205 }
1206 __inline extern  __attribute__((__nothrow__)) int feof_unlocked(FILE *__stream ) ;   1206 __inline extern  __attribute__((__nothrow__)) int feof_unlocked(FILE *__stream ) ;
1207 __inline extern int feof_unlocked(FILE *__stream )   1207 __inline extern int feof_unlocked(FILE *__stream )
1208 {   1208 {
1209     1209  
1210     1210  
1211   {   1211   {
1212   return ((__stream->_flags & 16) != 0);   1212   return ((__stream->_flags & 16) != 0);
1213 }   1213 }
1214 }   1214 }
1215 __inline extern  __attribute__((__nothrow__)) int ferror_unlocked(FILE *__stream ) ;   1215 __inline extern  __attribute__((__nothrow__)) int ferror_unlocked(FILE *__stream ) ;
1216 __inline extern int ferror_unlocked(FILE *__stream )   1216 __inline extern int ferror_unlocked(FILE *__stream )
1217 {   1217 {
1218     1218  
1219     1219  
1220   {   1220   {
1221   return ((__stream->_flags & 32) != 0);   1221   return ((__stream->_flags & 32) != 0);
1222 }   1222 }
1223 }   1223 }
1224 extern  __attribute__((__nothrow__)) size_t __ctype_get_mb_cur_max(void) ;   1224 extern  __attribute__((__nothrow__)) size_t __ctype_get_mb_cur_max(void) ;
1225 __inline extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) atof)(char const   *__nptr )  __attribute__((__pure__)) ;   1225 __inline extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) atof)(char const   *__nptr )  __attribute__((__pure__)) ;
1226 __inline extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) atoi)(char const   *__nptr )  __attribute__((__pure__)) ;   1226 __inline extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) atoi)(char const   *__nptr )  __attribute__((__pure__)) ;
1227 __inline extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) atol)(char const   *__nptr )  __attribute__((__pure__)) ;   1227 __inline extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) atol)(char const   *__nptr )  __attribute__((__pure__)) ;
1228 __inline extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) atoll)(char const   *__nptr )  __attribute__((__pure__)) ;   1228 __inline extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) atoll)(char const   *__nptr )  __attribute__((__pure__)) ;
1229 extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) strtod)(char const   * __restrict  __nptr ,   1229 extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) strtod)(char const   * __restrict  __nptr ,
1230                                                                                       char ** __restrict  __endptr ) ;   1230                                                                                       char ** __restrict  __endptr ) ;
1231 extern  __attribute__((__nothrow__)) float ( __attribute__((__nonnull__(1))) strtof)(char const   * __restrict  __nptr ,   1231 extern  __attribute__((__nothrow__)) float ( __attribute__((__nonnull__(1))) strtof)(char const   * __restrict  __nptr ,
1232                                                                                      char ** __restrict  __endptr ) ;   1232                                                                                      char ** __restrict  __endptr ) ;
1233 extern  __attribute__((__nothrow__)) long double ( __attribute__((__nonnull__(1))) strtold)(char const   * __restrict  __nptr ,   1233 extern  __attribute__((__nothrow__)) long double ( __attribute__((__nonnull__(1))) strtold)(char const   * __restrict  __nptr ,
1234                                                                                             char ** __restrict  __endptr ) ;   1234                                                                                             char ** __restrict  __endptr ) ;
1235 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) strtol)(char const   * __restrict  __nptr ,   1235 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) strtol)(char const   * __restrict  __nptr ,
1236                                                                                     char ** __restrict  __endptr ,   1236                                                                                     char ** __restrict  __endptr ,
1237                                                                                     int __base ) ;   1237                                                                                     int __base ) ;
1238 extern  __attribute__((__nothrow__)) unsigned long ( __attribute__((__nonnull__(1))) strtoul)(char const   * __restrict  __nptr ,   1238 extern  __attribute__((__nothrow__)) unsigned long ( __attribute__((__nonnull__(1))) strtoul)(char const   * __restrict  __nptr ,
1239                                                                                               char ** __restrict  __endptr ,   1239                                                                                               char ** __restrict  __endptr ,
1240                                                                                               int __base ) ;   1240                                                                                               int __base ) ;
1241 extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) strtoq)(char const   * __restrict  __nptr ,   1241 extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) strtoq)(char const   * __restrict  __nptr ,
1242                                                                                          char ** __restrict  __endptr ,   1242                                                                                          char ** __restrict  __endptr ,
1243                                                                                          int __base ) ;   1243                                                                                          int __base ) ;
1244 extern  __attribute__((__nothrow__)) unsigned long long ( __attribute__((__nonnull__(1))) strtouq)(char const   * __restrict  __nptr ,   1244 extern  __attribute__((__nothrow__)) unsigned long long ( __attribute__((__nonnull__(1))) strtouq)(char const   * __restrict  __nptr ,
1245                                                                                                    char ** __restrict  __endptr ,   1245                                                                                                    char ** __restrict  __endptr ,
1246                                                                                                    int __base ) ;   1246                                                                                                    int __base ) ;
1247 extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) strtoll)(char const   * __restrict  __nptr ,   1247 extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) strtoll)(char const   * __restrict  __nptr ,
1248                                                                                           char ** __restrict  __endptr ,   1248                                                                                           char ** __restrict  __endptr ,
1249                                                                                           int __base ) ;   1249                                                                                           int __base ) ;
1250 extern  __attribute__((__nothrow__)) unsigned long long ( __attribute__((__nonnull__(1))) strtoull)(char const   * __restrict  __nptr ,   1250 extern  __attribute__((__nothrow__)) unsigned long long ( __attribute__((__nonnull__(1))) strtoull)(char const   * __restrict  __nptr ,
1251                                                                                                     char ** __restrict  __endptr ,   1251                                                                                                     char ** __restrict  __endptr ,
1252                                                                                                     int __base ) ;   1252                                                                                                     int __base ) ;
1253 __inline extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) atof)(char const   *__nptr )  __attribute__((__pure__)) ;   1253 __inline extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) atof)(char const   *__nptr )  __attribute__((__pure__)) ;
1254 __inline extern double ( __attribute__((__nonnull__(1))) atof)(char const   *__nptr )   1254 __inline extern double ( __attribute__((__nonnull__(1))) atof)(char const   *__nptr )
1255 {   1255 {
1256   double tmp ;   1256   double tmp ;
1257     1257  
1258   {   1258   {
1259   tmp = strtod((char const   */* __restrict  */)__nptr,   1259   tmp = strtod((char const   */* __restrict  */)__nptr,
1260                (char **/* __restrict  */)((char **)((void *)0)));   1260                (char **/* __restrict  */)((char **)((void *)0)));
1261   return (tmp);   1261   return (tmp);
1262 }   1262 }
1263 }   1263 }
1264 __inline extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) atoi)(char const   *__nptr )  __attribute__((__pure__)) ;   1264 __inline extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) atoi)(char const   *__nptr )  __attribute__((__pure__)) ;
1265 __inline extern int ( __attribute__((__nonnull__(1))) atoi)(char const   *__nptr )   1265 __inline extern int ( __attribute__((__nonnull__(1))) atoi)(char const   *__nptr )
1266 {   1266 {
1267   long tmp ;   1267   long tmp ;
1268     1268  
1269   {   1269   {
1270   tmp = strtol((char const   */* __restrict  */)__nptr,   1270   tmp = strtol((char const   */* __restrict  */)__nptr,
1271                (char **/* __restrict  */)((char **)((void *)0)), 10);   1271                (char **/* __restrict  */)((char **)((void *)0)), 10);
1272   return ((int )tmp);   1272   return ((int )tmp);
1273 }   1273 }
1274 }   1274 }
1275 __inline extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) atol)(char const   *__nptr )  __attribute__((__pure__)) ;   1275 __inline extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) atol)(char const   *__nptr )  __attribute__((__pure__)) ;
1276 __inline extern long ( __attribute__((__nonnull__(1))) atol)(char const   *__nptr )   1276 __inline extern long ( __attribute__((__nonnull__(1))) atol)(char const   *__nptr )
1277 {   1277 {
1278   long tmp ;   1278   long tmp ;
1279     1279  
1280   {   1280   {
1281   tmp = strtol((char const   */* __restrict  */)__nptr,   1281   tmp = strtol((char const   */* __restrict  */)__nptr,
1282                (char **/* __restrict  */)((char **)((void *)0)), 10);   1282                (char **/* __restrict  */)((char **)((void *)0)), 10);
1283   return (tmp);   1283   return (tmp);
1284 }   1284 }
1285 }   1285 }
1286 __inline extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) atoll)(char const   *__nptr )  __attribute__((__pure__)) ;   1286 __inline extern  __attribute__((__nothrow__)) long long ( __attribute__((__nonnull__(1))) atoll)(char const   *__nptr )  __attribute__((__pure__)) ;
1287 __inline extern long long ( __attribute__((__nonnull__(1))) atoll)(char const   *__nptr )   1287 __inline extern long long ( __attribute__((__nonnull__(1))) atoll)(char const   *__nptr )
1288 {   1288 {
1289   long long tmp ;   1289   long long tmp ;
1290     1290  
1291   {   1291   {
1292   tmp = strtoll((char const   */* __restrict  */)__nptr,   1292   tmp = strtoll((char const   */* __restrict  */)__nptr,
1293                 (char **/* __restrict  */)((char **)((void *)0)), 10);   1293                 (char **/* __restrict  */)((char **)((void *)0)), 10);
1294   return (tmp);   1294   return (tmp);
1295 }   1295 }
1296 }   1296 }
1297 extern  __attribute__((__nothrow__)) char *l64a(long __n ) ;   1297 extern  __attribute__((__nothrow__)) char *l64a(long __n ) ;
1298 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) a64l)(char const   *__s )  __attribute__((__pure__)) ;   1298 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) a64l)(char const   *__s )  __attribute__((__pure__)) ;
1299 extern int select(int __nfds , fd_set * __restrict  __readfds ,   1299 extern int select(int __nfds , fd_set * __restrict  __readfds ,
1300                   fd_set * __restrict  __writefds ,   1300                   fd_set * __restrict  __writefds ,
1301                   fd_set * __restrict  __exceptfds ,   1301                   fd_set * __restrict  __exceptfds ,
1302                   struct timeval * __restrict  __timeout ) ;   1302                   struct timeval * __restrict  __timeout ) ;
1303 extern int pselect(int __nfds , fd_set * __restrict  __readfds ,   1303 extern int pselect(int __nfds , fd_set * __restrict  __readfds ,
1304                    fd_set * __restrict  __writefds ,   1304                    fd_set * __restrict  __writefds ,
1305                    fd_set * __restrict  __exceptfds ,   1305                    fd_set * __restrict  __exceptfds ,
1306                    struct timespec  const  * __restrict  __timeout ,   1306                    struct timespec  const  * __restrict  __timeout ,
1307                    __sigset_t const   * __restrict  __sigmask ) ;   1307                    __sigset_t const   * __restrict  __sigmask ) ;
1308 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_major(unsigned long long __dev ) ;   1308 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_major(unsigned long long __dev ) ;
1309 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_minor(unsigned long long __dev ) ;   1309 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_minor(unsigned long long __dev ) ;
1310 __inline extern  __attribute__((__nothrow__)) unsigned long long gnu_dev_makedev(unsigned int __major ,   1310 __inline extern  __attribute__((__nothrow__)) unsigned long long gnu_dev_makedev(unsigned int __major ,
1311                                                                                  unsigned int __minor ) ;   1311                                                                                  unsigned int __minor ) ;
1312 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_major(unsigned long long __dev ) ;   1312 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_major(unsigned long long __dev ) ;
1313 __inline extern unsigned int gnu_dev_major(unsigned long long __dev )   1313 __inline extern unsigned int gnu_dev_major(unsigned long long __dev )
1314 {   1314 {
1315     1315  
1316     1316  
1317   {   1317   {
1318   return ((unsigned int )(((__dev >> 8) & 4095ULL) | (unsigned long long )((unsigned int )(__dev >> 32) & 4294963200U)));   1318   return ((unsigned int )(((__dev >> 8) & 4095ULL) | (unsigned long long )((unsigned int )(__dev >> 32) & 4294963200U)));
1319 }   1319 }
1320 }   1320 }
1321 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_minor(unsigned long long __dev ) ;   1321 __inline extern  __attribute__((__nothrow__)) unsigned int gnu_dev_minor(unsigned long long __dev ) ;
1322 __inline extern unsigned int gnu_dev_minor(unsigned long long __dev )   1322 __inline extern unsigned int gnu_dev_minor(unsigned long long __dev )
1323 {   1323 {
1324     1324  
1325     1325  
1326   {   1326   {
1327   return ((unsigned int )((__dev & 255ULL) | (unsigned long long )((unsigned int )(__dev >> 12) & 4294967040U)));   1327   return ((unsigned int )((__dev & 255ULL) | (unsigned long long )((unsigned int )(__dev >> 12) & 4294967040U)));
1328 }   1328 }
1329 }   1329 }
1330 __inline extern  __attribute__((__nothrow__)) unsigned long long gnu_dev_makedev(unsigned int __major ,   1330 __inline extern  __attribute__((__nothrow__)) unsigned long long gnu_dev_makedev(unsigned int __major ,
1331                                                                                  unsigned int __minor ) ;   1331                                                                                  unsigned int __minor ) ;
1332 __inline extern unsigned long long gnu_dev_makedev(unsigned int __major ,   1332 __inline extern unsigned long long gnu_dev_makedev(unsigned int __major ,
1333                                                    unsigned int __minor )   1333                                                    unsigned int __minor )
1334 {   1334 {
1335     1335  
1336     1336  
1337   {   1337   {
1338   return (((unsigned long long )((__minor & 255U) | ((__major & 4095U) << 8)) | ((unsigned long long )(__minor & 4294967040U) << 12)) | ((unsigned long long )(__major & 4294963200U) << 32));   1338   return (((unsigned long long )((__minor & 255U) | ((__major & 4095U) << 8)) | ((unsigned long long )(__minor & 4294967040U) << 12)) | ((unsigned long long )(__major & 4294963200U) << 32));
1339 }   1339 }
1340 }   1340 }
1341 extern  __attribute__((__nothrow__)) long random(void) ;   1341 extern  __attribute__((__nothrow__)) long random(void) ;
1342 extern  __attribute__((__nothrow__)) void srandom(unsigned int __seed ) ;   1342 extern  __attribute__((__nothrow__)) void srandom(unsigned int __seed ) ;
1343 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2))) initstate)(unsigned int __seed ,   1343 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2))) initstate)(unsigned int __seed ,
1344                                                                                         char *__statebuf ,   1344                                                                                         char *__statebuf ,
1345                                                                                         size_t __statelen ) ;   1345                                                                                         size_t __statelen ) ;
1346 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) setstate)(char *__statebuf ) ;   1346 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) setstate)(char *__statebuf ) ;
1347 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) random_r)(struct random_data * __restrict  __buf ,   1347 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) random_r)(struct random_data * __restrict  __buf ,
1348                                                                                        int32_t * __restrict  __result ) ;   1348                                                                                        int32_t * __restrict  __result ) ;
1349 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) srandom_r)(unsigned int __seed ,   1349 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) srandom_r)(unsigned int __seed ,
1350                                                                                       struct random_data *__buf ) ;   1350                                                                                       struct random_data *__buf ) ;
1351 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2,4))) initstate_r)(unsigned int __seed ,   1351 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2,4))) initstate_r)(unsigned int __seed ,
1352                                                                                           char * __restrict  __statebuf ,   1352                                                                                           char * __restrict  __statebuf ,
1353                                                                                           size_t __statelen ,   1353                                                                                           size_t __statelen ,
1354                                                                                           struct random_data * __restrict  __buf ) ;   1354                                                                                           struct random_data * __restrict  __buf ) ;
1355 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) setstate_r)(char * __restrict  __statebuf ,   1355 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) setstate_r)(char * __restrict  __statebuf ,
1356                                                                                          struct random_data * __restrict  __buf ) ;   1356                                                                                          struct random_data * __restrict  __buf ) ;
1357 extern  __attribute__((__nothrow__)) int rand(void) ;   1357 extern  __attribute__((__nothrow__)) int rand(void) ;
1358 extern  __attribute__((__nothrow__)) void srand(unsigned int __seed ) ;   1358 extern  __attribute__((__nothrow__)) void srand(unsigned int __seed ) ;
1359 extern  __attribute__((__nothrow__)) int rand_r(unsigned int *__seed ) ;   1359 extern  __attribute__((__nothrow__)) int rand_r(unsigned int *__seed ) ;
1360 extern  __attribute__((__nothrow__)) double drand48(void) ;   1360 extern  __attribute__((__nothrow__)) double drand48(void) ;
1361 extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) erand48)(unsigned short *__xsubi ) ;   1361 extern  __attribute__((__nothrow__)) double ( __attribute__((__nonnull__(1))) erand48)(unsigned short *__xsubi ) ;
1362 extern  __attribute__((__nothrow__)) long lrand48(void) ;   1362 extern  __attribute__((__nothrow__)) long lrand48(void) ;
1363 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) nrand48)(unsigned short *__xsubi ) ;   1363 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) nrand48)(unsigned short *__xsubi ) ;
1364 extern  __attribute__((__nothrow__)) long mrand48(void) ;   1364 extern  __attribute__((__nothrow__)) long mrand48(void) ;
1365 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) jrand48)(unsigned short *__xsubi ) ;   1365 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) jrand48)(unsigned short *__xsubi ) ;
1366 extern  __attribute__((__nothrow__)) void srand48(long __seedval ) ;   1366 extern  __attribute__((__nothrow__)) void srand48(long __seedval ) ;
1367 extern  __attribute__((__nothrow__)) unsigned short *( __attribute__((__nonnull__(1))) seed48)(unsigned short *__seed16v ) ;   1367 extern  __attribute__((__nothrow__)) unsigned short *( __attribute__((__nonnull__(1))) seed48)(unsigned short *__seed16v ) ;
1368 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1))) lcong48)(unsigned short *__param ) ;   1368 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1))) lcong48)(unsigned short *__param ) ;
1369 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) drand48_r)(struct drand48_data * __restrict  __buffer ,   1369 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) drand48_r)(struct drand48_data * __restrict  __buffer ,
1370                                                                                         double * __restrict  __result ) ;   1370                                                                                         double * __restrict  __result ) ;
1371 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) erand48_r)(unsigned short *__xsubi ,   1371 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) erand48_r)(unsigned short *__xsubi ,
1372                                                                                         struct drand48_data * __restrict  __buffer ,   1372                                                                                         struct drand48_data * __restrict  __buffer ,
1373                                                                                         double * __restrict  __result ) ;   1373                                                                                         double * __restrict  __result ) ;
1374 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) lrand48_r)(struct drand48_data * __restrict  __buffer ,   1374 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) lrand48_r)(struct drand48_data * __restrict  __buffer ,
1375                                                                                         long * __restrict  __result ) ;   1375                                                                                         long * __restrict  __result ) ;
1376 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) nrand48_r)(unsigned short *__xsubi ,   1376 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) nrand48_r)(unsigned short *__xsubi ,
1377                                                                                         struct drand48_data * __restrict  __buffer ,   1377                                                                                         struct drand48_data * __restrict  __buffer ,
1378                                                                                         long * __restrict  __result ) ;   1378                                                                                         long * __restrict  __result ) ;
1379 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) mrand48_r)(struct drand48_data * __restrict  __buffer ,   1379 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) mrand48_r)(struct drand48_data * __restrict  __buffer ,
1380                                                                                         long * __restrict  __result ) ;   1380                                                                                         long * __restrict  __result ) ;
1381 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) jrand48_r)(unsigned short *__xsubi ,   1381 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) jrand48_r)(unsigned short *__xsubi ,
1382                                                                                         struct drand48_data * __restrict  __buffer ,   1382                                                                                         struct drand48_data * __restrict  __buffer ,
1383                                                                                         long * __restrict  __result ) ;   1383                                                                                         long * __restrict  __result ) ;
1384 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) srand48_r)(long __seedval ,   1384 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) srand48_r)(long __seedval ,
1385                                                                                       struct drand48_data *__buffer ) ;   1385                                                                                       struct drand48_data *__buffer ) ;
1386 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) seed48_r)(unsigned short *__seed16v ,   1386 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) seed48_r)(unsigned short *__seed16v ,
1387                                                                                        struct drand48_data *__buffer ) ;   1387                                                                                        struct drand48_data *__buffer ) ;
1388 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) lcong48_r)(unsigned short *__param ,   1388 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) lcong48_r)(unsigned short *__param ,
1389                                                                                         struct drand48_data *__buffer ) ;   1389                                                                                         struct drand48_data *__buffer ) ;
1390 extern  __attribute__((__nothrow__)) void *malloc(size_t __size )  __attribute__((__malloc__)) ;   1390 extern  __attribute__((__nothrow__)) void *malloc(size_t __size )  __attribute__((__malloc__)) ;
1391 extern  __attribute__((__nothrow__)) void *calloc(size_t __nmemb ,   1391 extern  __attribute__((__nothrow__)) void *calloc(size_t __nmemb ,
1392                                                   size_t __size )  __attribute__((__malloc__)) ;   1392                                                   size_t __size )  __attribute__((__malloc__)) ;
1393 extern  __attribute__((__nothrow__)) void *( __attribute__((__warn_unused_result__)) realloc)(void *__ptr ,   1393 extern  __attribute__((__nothrow__)) void *( __attribute__((__warn_unused_result__)) realloc)(void *__ptr ,
1394                                                                                               size_t __size ) ;   1394                                                                                               size_t __size ) ;
1395 extern  __attribute__((__nothrow__)) void free(void *__ptr ) ;   1395 extern  __attribute__((__nothrow__)) void free(void *__ptr ) ;
1396 extern  __attribute__((__nothrow__)) void cfree(void *__ptr ) ;   1396 extern  __attribute__((__nothrow__)) void cfree(void *__ptr ) ;
1397 extern  __attribute__((__nothrow__)) void *alloca(size_t __size ) ;   1397 extern  __attribute__((__nothrow__)) void *alloca(size_t __size ) ;
1398 extern  __attribute__((__nothrow__)) void *valloc(size_t __size )  __attribute__((__malloc__)) ;   1398 extern  __attribute__((__nothrow__)) void *valloc(size_t __size )  __attribute__((__malloc__)) ;
1399 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) posix_memalign)(void **__memptr ,   1399 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) posix_memalign)(void **__memptr ,
1400                                                                                            size_t __alignment ,   1400                                                                                            size_t __alignment ,
1401                                                                                            size_t __size ) ;   1401                                                                                            size_t __size ) ;
1402 extern  __attribute__((__nothrow__, __noreturn__)) void abort(void) ;   1402 extern  __attribute__((__nothrow__, __noreturn__)) void abort(void) ;
1403 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) atexit)(void (*__func)(void) ) ;   1403 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) atexit)(void (*__func)(void) ) ;
1404 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) on_exit)(void (*__func)(int __status ,   1404 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) on_exit)(void (*__func)(int __status ,
1405                                                                                                    void *__arg ) ,   1405                                                                                                    void *__arg ) ,
1406                                                                                     void *__arg ) ;   1406                                                                                     void *__arg ) ;
1407 extern  __attribute__((__nothrow__, __noreturn__)) void exit(int __status ) ;   1407 extern  __attribute__((__nothrow__, __noreturn__)) void exit(int __status ) ;
1408 extern  __attribute__((__nothrow__, __noreturn__)) void _Exit(int __status ) ;   1408 extern  __attribute__((__nothrow__, __noreturn__)) void _Exit(int __status ) ;
1409 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) getenv)(char const   *__name ) ;   1409 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) getenv)(char const   *__name ) ;
1410 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) __secure_getenv)(char const   *__name ) ;   1410 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) __secure_getenv)(char const   *__name ) ;
1411 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) putenv)(char *__string ) ;   1411 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) putenv)(char *__string ) ;
1412 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) setenv)(char const   *__name ,   1412 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) setenv)(char const   *__name ,
1413                                                                                    char const   *__value ,   1413                                                                                    char const   *__value ,
1414                                                                                    int __replace ) ;   1414                                                                                    int __replace ) ;
1415 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) unsetenv)(char const   *__name ) ;   1415 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) unsetenv)(char const   *__name ) ;
1416 extern  __attribute__((__nothrow__)) int clearenv(void) ;   1416 extern  __attribute__((__nothrow__)) int clearenv(void) ;
1417 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) mktemp)(char *__template ) ;   1417 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) mktemp)(char *__template ) ;
1418 extern int ( __attribute__((__nonnull__(1))) mkstemp)(char *__template )  __asm__("mkstemp64")  ;   1418 extern int ( __attribute__((__nonnull__(1))) mkstemp)(char *__template )  __asm__("mkstemp64")  ;
1419 extern int ( __attribute__((__nonnull__(1))) mkstemps)(char *__template ,   1419 extern int ( __attribute__((__nonnull__(1))) mkstemps)(char *__template ,
1420                                                        int __suffixlen )  __asm__("mkstemps64")  ;   1420                                                        int __suffixlen )  __asm__("mkstemps64")  ;
1421 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) mkdtemp)(char *__template ) ;   1421 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) mkdtemp)(char *__template ) ;
1422 extern int system(char const   *__command ) ;   1422 extern int system(char const   *__command ) ;
1423 extern  __attribute__((__nothrow__)) char *realpath(char const   * __restrict  __name ,   1423 extern  __attribute__((__nothrow__)) char *realpath(char const   * __restrict  __name ,
1424                                                     char * __restrict  __resolved ) ;   1424                                                     char * __restrict  __resolved ) ;
1425 extern void *( __attribute__((__nonnull__(1,2,5))) bsearch)(void const   *__key ,   1425 extern void *( __attribute__((__nonnull__(1,2,5))) bsearch)(void const   *__key ,
1426                                                             void const   *__base ,   1426                                                             void const   *__base ,
1427                                                             size_t __nmemb ,   1427                                                             size_t __nmemb ,
1428                                                             size_t __size ,   1428                                                             size_t __size ,
1429                                                             int (*__compar)(void const   * ,   1429                                                             int (*__compar)(void const   * ,
1430                                                                             void const   * ) ) ;   1430                                                                             void const   * ) ) ;
1431 extern void ( __attribute__((__nonnull__(1,4))) qsort)(void *__base ,   1431 extern void ( __attribute__((__nonnull__(1,4))) qsort)(void *__base ,
1432                                                        size_t __nmemb ,   1432                                                        size_t __nmemb ,
1433                                                        size_t __size ,   1433                                                        size_t __size ,
1434                                                        int (*__compar)(void const   * ,   1434                                                        int (*__compar)(void const   * ,
1435                                                                        void const   * ) ) ;   1435                                                                        void const   * ) ) ;
1436 extern  __attribute__((__nothrow__)) int abs(int __x )  __attribute__((__const__)) ;   1436 extern  __attribute__((__nothrow__)) int abs(int __x )  __attribute__((__const__)) ;
1437 extern  __attribute__((__nothrow__)) long labs(long __x )  __attribute__((__const__)) ;   1437 extern  __attribute__((__nothrow__)) long labs(long __x )  __attribute__((__const__)) ;
1438 extern  __attribute__((__nothrow__)) long long llabs(long long __x )  __attribute__((__const__)) ;   1438 extern  __attribute__((__nothrow__)) long long llabs(long long __x )  __attribute__((__const__)) ;
1439 extern  __attribute__((__nothrow__)) div_t div(int __numer , int __denom )  __attribute__((__const__)) ;   1439 extern  __attribute__((__nothrow__)) div_t div(int __numer , int __denom )  __attribute__((__const__)) ;
1440 extern  __attribute__((__nothrow__)) ldiv_t ldiv(long __numer , long __denom )  __attribute__((__const__)) ;   1440 extern  __attribute__((__nothrow__)) ldiv_t ldiv(long __numer , long __denom )  __attribute__((__const__)) ;
1441 extern  __attribute__((__nothrow__)) lldiv_t lldiv(long long __numer ,   1441 extern  __attribute__((__nothrow__)) lldiv_t lldiv(long long __numer ,
1442                                                    long long __denom )  __attribute__((__const__)) ;   1442                                                    long long __denom )  __attribute__((__const__)) ;
1443 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) ecvt)(double __value ,   1443 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) ecvt)(double __value ,
1444                                                                                      int __ndigit ,   1444                                                                                      int __ndigit ,
1445                                                                                      int * __restrict  __decpt ,   1445                                                                                      int * __restrict  __decpt ,
1446                                                                                      int * __restrict  __sign ) ;   1446                                                                                      int * __restrict  __sign ) ;
1447 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) fcvt)(double __value ,   1447 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) fcvt)(double __value ,
1448                                                                                      int __ndigit ,   1448                                                                                      int __ndigit ,
1449                                                                                      int * __restrict  __decpt ,   1449                                                                                      int * __restrict  __decpt ,
1450                                                                                      int * __restrict  __sign ) ;   1450                                                                                      int * __restrict  __sign ) ;
1451 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3))) gcvt)(double __value ,   1451 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3))) gcvt)(double __value ,
1452                                                                                    int __ndigit ,   1452                                                                                    int __ndigit ,
1453                                                                                    char *__buf ) ;   1453                                                                                    char *__buf ) ;
1454 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) qecvt)(long double __value ,   1454 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) qecvt)(long double __value ,
1455                                                                                       int __ndigit ,   1455                                                                                       int __ndigit ,
1456                                                                                       int * __restrict  __decpt ,   1456                                                                                       int * __restrict  __decpt ,
1457                                                                                       int * __restrict  __sign ) ;   1457                                                                                       int * __restrict  __sign ) ;
1458 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) qfcvt)(long double __value ,   1458 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3,4))) qfcvt)(long double __value ,
1459                                                                                       int __ndigit ,   1459                                                                                       int __ndigit ,
1460                                                                                       int * __restrict  __decpt ,   1460                                                                                       int * __restrict  __decpt ,
1461                                                                                       int * __restrict  __sign ) ;   1461                                                                                       int * __restrict  __sign ) ;
1462 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3))) qgcvt)(long double __value ,   1462 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(3))) qgcvt)(long double __value ,
1463                                                                                     int __ndigit ,   1463                                                                                     int __ndigit ,
1464                                                                                     char *__buf ) ;   1464                                                                                     char *__buf ) ;
1465 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) ecvt_r)(double __value ,   1465 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) ecvt_r)(double __value ,
1466                                                                                        int __ndigit ,   1466                                                                                        int __ndigit ,
1467                                                                                        int * __restrict  __decpt ,   1467                                                                                        int * __restrict  __decpt ,
1468                                                                                        int * __restrict  __sign ,   1468                                                                                        int * __restrict  __sign ,
1469                                                                                        char * __restrict  __buf ,   1469                                                                                        char * __restrict  __buf ,
1470                                                                                        size_t __len ) ;   1470                                                                                        size_t __len ) ;
1471 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) fcvt_r)(double __value ,   1471 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) fcvt_r)(double __value ,
1472                                                                                        int __ndigit ,   1472                                                                                        int __ndigit ,
1473                                                                                        int * __restrict  __decpt ,   1473                                                                                        int * __restrict  __decpt ,
1474                                                                                        int * __restrict  __sign ,   1474                                                                                        int * __restrict  __sign ,
1475                                                                                        char * __restrict  __buf ,   1475                                                                                        char * __restrict  __buf ,
1476                                                                                        size_t __len ) ;   1476                                                                                        size_t __len ) ;
1477 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) qecvt_r)(long double __value ,   1477 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) qecvt_r)(long double __value ,
1478                                                                                         int __ndigit ,   1478                                                                                         int __ndigit ,
1479                                                                                         int * __restrict  __decpt ,   1479                                                                                         int * __restrict  __decpt ,
1480                                                                                         int * __restrict  __sign ,   1480                                                                                         int * __restrict  __sign ,
1481                                                                                         char * __restrict  __buf ,   1481                                                                                         char * __restrict  __buf ,
1482                                                                                         size_t __len ) ;   1482                                                                                         size_t __len ) ;
1483 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) qfcvt_r)(long double __value ,   1483 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(3,4,5))) qfcvt_r)(long double __value ,
1484                                                                                         int __ndigit ,   1484                                                                                         int __ndigit ,
1485                                                                                         int * __restrict  __decpt ,   1485                                                                                         int * __restrict  __decpt ,
1486                                                                                         int * __restrict  __sign ,   1486                                                                                         int * __restrict  __sign ,
1487                                                                                         char * __restrict  __buf ,   1487                                                                                         char * __restrict  __buf ,
1488                                                                                         size_t __len ) ;   1488                                                                                         size_t __len ) ;
1489 extern  __attribute__((__nothrow__)) int mblen(char const   *__s , size_t __n ) ;   1489 extern  __attribute__((__nothrow__)) int mblen(char const   *__s , size_t __n ) ;
1490 extern  __attribute__((__nothrow__)) int mbtowc(wchar_t * __restrict  __pwc ,   1490 extern  __attribute__((__nothrow__)) int mbtowc(wchar_t * __restrict  __pwc ,
1491                                                 char const   * __restrict  __s ,   1491                                                 char const   * __restrict  __s ,
1492                                                 size_t __n ) ;   1492                                                 size_t __n ) ;
1493 extern  __attribute__((__nothrow__)) int wctomb(char *__s , wchar_t __wchar ) ;   1493 extern  __attribute__((__nothrow__)) int wctomb(char *__s , wchar_t __wchar ) ;
1494 extern  __attribute__((__nothrow__)) size_t mbstowcs(wchar_t * __restrict  __pwcs ,   1494 extern  __attribute__((__nothrow__)) size_t mbstowcs(wchar_t * __restrict  __pwcs ,
1495                                                      char const   * __restrict  __s ,   1495                                                      char const   * __restrict  __s ,
1496                                                      size_t __n ) ;   1496                                                      size_t __n ) ;
1497 extern  __attribute__((__nothrow__)) size_t wcstombs(char * __restrict  __s ,   1497 extern  __attribute__((__nothrow__)) size_t wcstombs(char * __restrict  __s ,
1498                                                      wchar_t const   * __restrict  __pwcs ,   1498                                                      wchar_t const   * __restrict  __pwcs ,
1499                                                      size_t __n ) ;   1499                                                      size_t __n ) ;
1500 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) rpmatch)(char const   *__response ) ;   1500 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) rpmatch)(char const   *__response ) ;
1501 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2,3))) getsubopt)(char ** __restrict  __optionp ,   1501 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2,3))) getsubopt)(char ** __restrict  __optionp ,
1502                                                                                           char * const  * __restrict  __tokens ,   1502                                                                                           char * const  * __restrict  __tokens ,
1503                                                                                           char ** __restrict  __valuep ) ;   1503                                                                                           char ** __restrict  __valuep ) ;
1504 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) getloadavg)(double *__loadavg ,   1504 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) getloadavg)(double *__loadavg ,
1505                                                                                        int __nelem ) ;   1505                                                                                        int __nelem ) ;
1506 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1,2))) memcpy)(void * __restrict  __dest ,   1506 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1,2))) memcpy)(void * __restrict  __dest ,
1507                                                                                        void const   * __restrict  __src ,   1507                                                                                        void const   * __restrict  __src ,
1508                                                                                        size_t __n ) ;   1508                                                                                        size_t __n ) ;
1509 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1,2))) memmove)(void *__dest ,   1509 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1,2))) memmove)(void *__dest ,
1510                                                                                         void const   *__src ,   1510                                                                                         void const   *__src ,
1511                                                                                         size_t __n ) ;   1511                                                                                         size_t __n ) ;
1512 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1,2))) memccpy)(void * __restrict  __dest ,   1512 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1,2))) memccpy)(void * __restrict  __dest ,
1513                                                                                         void const   * __restrict  __src ,   1513                                                                                         void const   * __restrict  __src ,
1514                                                                                         int __c ,   1514                                                                                         int __c ,
1515                                                                                         size_t __n ) ;   1515                                                                                         size_t __n ) ;
1516 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1))) memset)(void *__s ,   1516 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1))) memset)(void *__s ,
1517                                                                                      int __c ,   1517                                                                                      int __c ,
1518                                                                                      size_t __n ) ;   1518                                                                                      size_t __n ) ;
1519 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) memcmp)(void const   *__s1 ,   1519 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) memcmp)(void const   *__s1 ,
1520                                                                                      void const   *__s2 ,   1520                                                                                      void const   *__s2 ,
1521                                                                                      size_t __n )  __attribute__((__pure__)) ;   1521                                                                                      size_t __n )  __attribute__((__pure__)) ;
1522 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1))) memchr)(void const   *__s ,   1522 extern  __attribute__((__nothrow__)) void *( __attribute__((__nonnull__(1))) memchr)(void const   *__s ,
1523                                                                                      int __c ,   1523                                                                                      int __c ,
1524                                                                                      size_t __n )  __attribute__((__pure__)) ;   1524                                                                                      size_t __n )  __attribute__((__pure__)) ;
1525 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strcpy)(char * __restrict  __dest ,   1525 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strcpy)(char * __restrict  __dest ,
1526                                                                                        char const   * __restrict  __src ) ;   1526                                                                                        char const   * __restrict  __src ) ;
1527 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strncpy)(char * __restrict  __dest ,   1527 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strncpy)(char * __restrict  __dest ,
1528                                                                                         char const   * __restrict  __src ,   1528                                                                                         char const   * __restrict  __src ,
1529                                                                                         size_t __n ) ;   1529                                                                                         size_t __n ) ;
1530 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strcat)(char * __restrict  __dest ,   1530 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strcat)(char * __restrict  __dest ,
1531                                                                                        char const   * __restrict  __src ) ;   1531                                                                                        char const   * __restrict  __src ) ;
1532 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strncat)(char * __restrict  __dest ,   1532 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strncat)(char * __restrict  __dest ,
1533                                                                                         char const   * __restrict  __src ,   1533                                                                                         char const   * __restrict  __src ,
1534                                                                                         size_t __n ) ;   1534                                                                                         size_t __n ) ;
1535 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strcmp)(char const   *__s1 ,   1535 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strcmp)(char const   *__s1 ,
1536                                                                                      char const   *__s2 )  __attribute__((__pure__)) ;   1536                                                                                      char const   *__s2 )  __attribute__((__pure__)) ;
1537 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strncmp)(char const   *__s1 ,   1537 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strncmp)(char const   *__s1 ,
1538                                                                                       char const   *__s2 ,   1538                                                                                       char const   *__s2 ,
1539                                                                                       size_t __n )  __attribute__((__pure__)) ;   1539                                                                                       size_t __n )  __attribute__((__pure__)) ;
1540 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strcoll)(char const   *__s1 ,   1540 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strcoll)(char const   *__s1 ,
1541                                                                                       char const   *__s2 )  __attribute__((__pure__)) ;   1541                                                                                       char const   *__s2 )  __attribute__((__pure__)) ;
1542 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(2))) strxfrm)(char * __restrict  __dest ,   1542 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(2))) strxfrm)(char * __restrict  __dest ,
1543                                                                                        char const   * __restrict  __src ,   1543                                                                                        char const   * __restrict  __src ,
1544                                                                                        size_t __n ) ;   1544                                                                                        size_t __n ) ;
1545 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2,3))) strcoll_l)(char const   *__s1 ,   1545 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2,3))) strcoll_l)(char const   *__s1 ,
1546                                                                                           char const   *__s2 ,   1546                                                                                           char const   *__s2 ,
1547                                                                                           __locale_t __l )  __attribute__((__pure__)) ;   1547                                                                                           __locale_t __l )  __attribute__((__pure__)) ;
1548 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(2,4))) strxfrm_l)(char *__dest ,   1548 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(2,4))) strxfrm_l)(char *__dest ,
1549                                                                                            char const   *__src ,   1549                                                                                            char const   *__src ,
1550                                                                                            size_t __n ,   1550                                                                                            size_t __n ,
1551                                                                                            __locale_t __l ) ;   1551                                                                                            __locale_t __l ) ;
1552 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strdup)(char const   *__s )  __attribute__((__malloc__)) ;   1552 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strdup)(char const   *__s )  __attribute__((__malloc__)) ;
1553 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strndup)(char const   *__string ,   1553 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strndup)(char const   *__string ,
1554                                                                                       size_t __n )  __attribute__((__malloc__)) ;   1554                                                                                       size_t __n )  __attribute__((__malloc__)) ;
1555 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strchr)(char const   *__s ,   1555 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strchr)(char const   *__s ,
1556                                                                                      int __c )  __attribute__((__pure__)) ;   1556                                                                                      int __c )  __attribute__((__pure__)) ;
1557 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strrchr)(char const   *__s ,   1557 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) strrchr)(char const   *__s ,
1558                                                                                       int __c )  __attribute__((__pure__)) ;   1558                                                                                       int __c )  __attribute__((__pure__)) ;
1559 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1,2))) strcspn)(char const   *__s ,   1559 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1,2))) strcspn)(char const   *__s ,
1560                                                                                          char const   *__reject )  __attribute__((__pure__)) ;   1560                                                                                          char const   *__reject )  __attribute__((__pure__)) ;
1561 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1,2))) strspn)(char const   *__s ,   1561 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1,2))) strspn)(char const   *__s ,
1562                                                                                         char const   *__accept )  __attribute__((__pure__)) ;   1562                                                                                         char const   *__accept )  __attribute__((__pure__)) ;
1563 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strpbrk)(char const   *__s ,   1563 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strpbrk)(char const   *__s ,
1564                                                                                         char const   *__accept )  __attribute__((__pure__)) ;   1564                                                                                         char const   *__accept )  __attribute__((__pure__)) ;
1565 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strstr)(char const   *__haystack ,   1565 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strstr)(char const   *__haystack ,
1566                                                                                        char const   *__needle )  __attribute__((__pure__)) ;   1566                                                                                        char const   *__needle )  __attribute__((__pure__)) ;
1567 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2))) strtok)(char * __restrict  __s ,   1567 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2))) strtok)(char * __restrict  __s ,
1568                                                                                      char const   * __restrict  __delim ) ;   1568                                                                                      char const   * __restrict  __delim ) ;
1569 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2,3))) __strtok_r)(char * __restrict  __s ,   1569 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2,3))) __strtok_r)(char * __restrict  __s ,
1570                                                                                            char const   * __restrict  __delim ,   1570                                                                                            char const   * __restrict  __delim ,
1571                                                                                            char ** __restrict  __save_ptr ) ;   1571                                                                                            char ** __restrict  __save_ptr ) ;
1572 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2,3))) strtok_r)(char * __restrict  __s ,   1572 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(2,3))) strtok_r)(char * __restrict  __s ,
1573                                                                                          char const   * __restrict  __delim ,   1573                                                                                          char const   * __restrict  __delim ,
1574                                                                                          char ** __restrict  __save_ptr ) ;   1574                                                                                          char ** __restrict  __save_ptr ) ;
1575 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1))) strlen)(char const   *__s )  __attribute__((__pure__)) ;   1575 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1))) strlen)(char const   *__s )  __attribute__((__pure__)) ;
1576 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1))) strnlen)(char const   *__string ,   1576 extern  __attribute__((__nothrow__)) size_t ( __attribute__((__nonnull__(1))) strnlen)(char const   *__string ,
1577                                                                                        size_t __maxlen )  __attribute__((__pure__)) ;   1577                                                                                        size_t __maxlen )  __attribute__((__pure__)) ;
1578 extern  __attribute__((__nothrow__)) char *strerror(int __errnum ) ;   1578 extern  __attribute__((__nothrow__)) char *strerror(int __errnum ) ;
1579 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) strerror_r)(int __errnum ,   1579 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) strerror_r)(int __errnum ,
1580                                                                                        char *__buf ,   1580                                                                                        char *__buf ,
1581                                                                                        size_t __buflen )  __asm__("__xpg_strerror_r")  ;   1581                                                                                        size_t __buflen )  __asm__("__xpg_strerror_r")  ;
1582 extern  __attribute__((__nothrow__)) char *strerror_l(int __errnum ,   1582 extern  __attribute__((__nothrow__)) char *strerror_l(int __errnum ,
1583                                                       __locale_t __l ) ;   1583                                                       __locale_t __l ) ;
1584 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1))) __bzero)(void *__s ,   1584 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1))) __bzero)(void *__s ,
1585                                                                                      size_t __n ) ;   1585                                                                                      size_t __n ) ;
1586 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1,2))) bcopy)(void const   *__src ,   1586 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1,2))) bcopy)(void const   *__src ,
1587                                                                                      void *__dest ,   1587                                                                                      void *__dest ,
1588                                                                                      size_t __n ) ;   1588                                                                                      size_t __n ) ;
1589 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1))) bzero)(void *__s ,   1589 extern  __attribute__((__nothrow__)) void ( __attribute__((__nonnull__(1))) bzero)(void *__s ,
1590                                                                                    size_t __n ) ;   1590                                                                                    size_t __n ) ;
1591 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) bcmp)(void const   *__s1 ,   1591 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) bcmp)(void const   *__s1 ,
1592                                                                                    void const   *__s2 ,   1592                                                                                    void const   *__s2 ,
1593                                                                                    size_t __n )  __attribute__((__pure__)) ;   1593                                                                                    size_t __n )  __attribute__((__pure__)) ;
1594 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) index)(char const   *__s ,   1594 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) index)(char const   *__s ,
1595                                                                                     int __c )  __attribute__((__pure__)) ;   1595                                                                                     int __c )  __attribute__((__pure__)) ;
1596 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) rindex)(char const   *__s ,   1596 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) rindex)(char const   *__s ,
1597                                                                                      int __c )  __attribute__((__pure__)) ;   1597                                                                                      int __c )  __attribute__((__pure__)) ;
1598 extern  __attribute__((__nothrow__)) int ffs(int __i )  __attribute__((__const__)) ;   1598 extern  __attribute__((__nothrow__)) int ffs(int __i )  __attribute__((__const__)) ;
1599 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strcasecmp)(char const   *__s1 ,   1599 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strcasecmp)(char const   *__s1 ,
1600                                                                                          char const   *__s2 )  __attribute__((__pure__)) ;   1600                                                                                          char const   *__s2 )  __attribute__((__pure__)) ;
1601 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strncasecmp)(char const   *__s1 ,   1601 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) strncasecmp)(char const   *__s1 ,
1602                                                                                           char const   *__s2 ,   1602                                                                                           char const   *__s2 ,
1603                                                                                           size_t __n )  __attribute__((__pure__)) ;   1603                                                                                           size_t __n )  __attribute__((__pure__)) ;
1604 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strsep)(char ** __restrict  __stringp ,   1604 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) strsep)(char ** __restrict  __stringp ,
1605                                                                                        char const   * __restrict  __delim ) ;   1605                                                                                        char const   * __restrict  __delim ) ;
1606 extern  __attribute__((__nothrow__)) char *strsignal(int __sig ) ;   1606 extern  __attribute__((__nothrow__)) char *strsignal(int __sig ) ;
1607 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) __stpcpy)(char * __restrict  __dest ,   1607 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) __stpcpy)(char * __restrict  __dest ,
1608                                                                                          char const   * __restrict  __src ) ;   1608                                                                                          char const   * __restrict  __src ) ;
1609 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) stpcpy)(char * __restrict  __dest ,   1609 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) stpcpy)(char * __restrict  __dest ,
1610                                                                                        char const   * __restrict  __src ) ;   1610                                                                                        char const   * __restrict  __src ) ;
1611 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) __stpncpy)(char * __restrict  __dest ,   1611 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) __stpncpy)(char * __restrict  __dest ,
1612                                                                                           char const   * __restrict  __src ,   1612                                                                                           char const   * __restrict  __src ,
1613                                                                                           size_t __n ) ;   1613                                                                                           size_t __n ) ;
1614 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) stpncpy)(char * __restrict  __dest ,   1614 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1,2))) stpncpy)(char * __restrict  __dest ,
1615                                                                                         char const   * __restrict  __src ,   1615                                                                                         char const   * __restrict  __src ,
1616                                                                                         size_t __n ) ;   1616                                                                                         size_t __n ) ;
1617 extern void *__rawmemchr(void const   *__s , int __c ) ;   1617 extern void *__rawmemchr(void const   *__s , int __c ) ;
1618 __inline extern size_t __strcspn_c1(char const   *__s , int __reject ) ;   1618 __inline extern size_t __strcspn_c1(char const   *__s , int __reject ) ;
1619 __inline extern size_t __strcspn_c1(char const   *__s , int __reject )   1619 __inline extern size_t __strcspn_c1(char const   *__s , int __reject )
1620 {   1620 {
1621   register size_t __result ;   1621   register size_t __result ;
1622     1622  
1623   {   1623   {
1624   __result = (size_t )0;   1624   __result = (size_t )0;
1625   while (1) {   1625   while (1) {
1626     if ((int const   )*(__s + __result) != 0) {   1626     if ((int const   )*(__s + __result) != 0) {
1627       if ((int const   )*(__s + __result) != (int const   )__reject) {   1627       if ((int const   )*(__s + __result) != (int const   )__reject) {
1628     1628  
1629       } else {   1629       } else {
1630         break;   1630         break;
1631       }   1631       }
1632     } else {   1632     } else {
1633       break;   1633       break;
1634     }   1634     }
1635     __result ++;   1635     __result ++;
1636   }   1636   }
1637   return (__result);   1637   return (__result);
1638 }   1638 }
1639 }   1639 }
1640 __inline extern size_t __strcspn_c2(char const   *__s , int __reject1 ,   1640 __inline extern size_t __strcspn_c2(char const   *__s , int __reject1 ,
1641                                     int __reject2 ) ;   1641                                     int __reject2 ) ;
1642 __inline extern size_t __strcspn_c2(char const   *__s , int __reject1 ,   1642 __inline extern size_t __strcspn_c2(char const   *__s , int __reject1 ,
1643                                     int __reject2 )   1643                                     int __reject2 )
1644 {   1644 {
1645   register size_t __result ;   1645   register size_t __result ;
1646     1646  
1647   {   1647   {
1648   __result = (size_t )0;   1648   __result = (size_t )0;
1649   while (1) {   1649   while (1) {
1650     if ((int const   )*(__s + __result) != 0) {   1650     if ((int const   )*(__s + __result) != 0) {
1651       if ((int const   )*(__s + __result) != (int const   )__reject1) {   1651       if ((int const   )*(__s + __result) != (int const   )__reject1) {
1652         if ((int const   )*(__s + __result) != (int const   )__reject2) {   1652         if ((int const   )*(__s + __result) != (int const   )__reject2) {
1653     1653  
1654         } else {   1654         } else {
1655           break;   1655           break;
1656         }   1656         }
1657       } else {   1657       } else {
1658         break;   1658         break;
1659       }   1659       }
1660     } else {   1660     } else {
1661       break;   1661       break;
1662     }   1662     }
1663     __result ++;   1663     __result ++;
1664   }   1664   }
1665   return (__result);   1665   return (__result);
1666 }   1666 }
1667 }   1667 }
1668 __inline extern size_t __strcspn_c3(char const   *__s , int __reject1 ,   1668 __inline extern size_t __strcspn_c3(char const   *__s , int __reject1 ,
1669                                     int __reject2 , int __reject3 ) ;   1669                                     int __reject2 , int __reject3 ) ;
1670 __inline extern size_t __strcspn_c3(char const   *__s , int __reject1 ,   1670 __inline extern size_t __strcspn_c3(char const   *__s , int __reject1 ,
1671                                     int __reject2 , int __reject3 )   1671                                     int __reject2 , int __reject3 )
1672 {   1672 {
1673   register size_t __result ;   1673   register size_t __result ;
1674     1674  
1675   {   1675   {
1676   __result = (size_t )0;   1676   __result = (size_t )0;
1677   while (1) {   1677   while (1) {
1678     if ((int const   )*(__s + __result) != 0) {   1678     if ((int const   )*(__s + __result) != 0) {
1679       if ((int const   )*(__s + __result) != (int const   )__reject1) {   1679       if ((int const   )*(__s + __result) != (int const   )__reject1) {
1680         if ((int const   )*(__s + __result) != (int const   )__reject2) {   1680         if ((int const   )*(__s + __result) != (int const   )__reject2) {
1681           if ((int const   )*(__s + __result) != (int const   )__reject3) {   1681           if ((int const   )*(__s + __result) != (int const   )__reject3) {
1682     1682  
1683           } else {   1683           } else {
1684             break;   1684             break;
1685           }   1685           }
1686         } else {   1686         } else {
1687           break;   1687           break;
1688         }   1688         }
1689       } else {   1689       } else {
1690         break;   1690         break;
1691       }   1691       }
1692     } else {   1692     } else {
1693       break;   1693       break;
1694     }   1694     }
1695     __result ++;   1695     __result ++;
1696   }   1696   }
1697   return (__result);   1697   return (__result);
1698 }   1698 }
1699 }   1699 }
1700 __inline extern size_t __strspn_c1(char const   *__s , int __accept ) ;   1700 __inline extern size_t __strspn_c1(char const   *__s , int __accept ) ;
1701 __inline extern size_t __strspn_c1(char const   *__s , int __accept )   1701 __inline extern size_t __strspn_c1(char const   *__s , int __accept )
1702 {   1702 {
1703   register size_t __result ;   1703   register size_t __result ;
1704     1704  
1705   {   1705   {
1706   __result = (size_t )0;   1706   __result = (size_t )0;
1707   while ((int const   )*(__s + __result) == (int const   )__accept) {   1707   while ((int const   )*(__s + __result) == (int const   )__accept) {
1708     __result ++;   1708     __result ++;
1709   }   1709   }
1710   return (__result);   1710   return (__result);
1711 }   1711 }
1712 }   1712 }
1713 __inline extern size_t __strspn_c2(char const   *__s , int __accept1 ,   1713 __inline extern size_t __strspn_c2(char const   *__s , int __accept1 ,
1714                                    int __accept2 ) ;   1714                                    int __accept2 ) ;
1715 __inline extern size_t __strspn_c2(char const   *__s , int __accept1 ,   1715 __inline extern size_t __strspn_c2(char const   *__s , int __accept1 ,
1716                                    int __accept2 )   1716                                    int __accept2 )
1717 {   1717 {
1718   register size_t __result ;   1718   register size_t __result ;
1719     1719  
1720   {   1720   {
1721   __result = (size_t )0;   1721   __result = (size_t )0;
1722   while (1) {   1722   while (1) {
1723     if ((int const   )*(__s + __result) == (int const   )__accept1) {   1723     if ((int const   )*(__s + __result) == (int const   )__accept1) {
1724     1724  
1725     } else   1725     } else
1726     if ((int const   )*(__s + __result) == (int const   )__accept2) {   1726     if ((int const   )*(__s + __result) == (int const   )__accept2) {
1727     1727  
1728     } else {   1728     } else {
1729       break;   1729       break;
1730     }   1730     }
1731     __result ++;   1731     __result ++;
1732   }   1732   }
1733   return (__result);   1733   return (__result);
1734 }   1734 }
1735 }   1735 }
1736 __inline extern size_t __strspn_c3(char const   *__s , int __accept1 ,   1736 __inline extern size_t __strspn_c3(char const   *__s , int __accept1 ,
1737                                    int __accept2 , int __accept3 ) ;   1737                                    int __accept2 , int __accept3 ) ;
1738 __inline extern size_t __strspn_c3(char const   *__s , int __accept1 ,   1738 __inline extern size_t __strspn_c3(char const   *__s , int __accept1 ,
1739                                    int __accept2 , int __accept3 )   1739                                    int __accept2 , int __accept3 )
1740 {   1740 {
1741   register size_t __result ;   1741   register size_t __result ;
1742     1742  
1743   {   1743   {
1744   __result = (size_t )0;   1744   __result = (size_t )0;
1745   while (1) {   1745   while (1) {
1746     if ((int const   )*(__s + __result) == (int const   )__accept1) {   1746     if ((int const   )*(__s + __result) == (int const   )__accept1) {
1747     1747  
1748     } else   1748     } else
1749     if ((int const   )*(__s + __result) == (int const   )__accept2) {   1749     if ((int const   )*(__s + __result) == (int const   )__accept2) {
1750     1750  
1751     } else   1751     } else
1752     if ((int const   )*(__s + __result) == (int const   )__accept3) {   1752     if ((int const   )*(__s + __result) == (int const   )__accept3) {
1753     1753  
1754     } else {   1754     } else {
1755       break;   1755       break;
1756     }   1756     }
1757     __result ++;   1757     __result ++;
1758   }   1758   }
1759   return (__result);   1759   return (__result);
1760 }   1760 }
1761 }   1761 }
1762 __inline extern char *__strpbrk_c2(char const   *__s , int __accept1 ,   1762 __inline extern char *__strpbrk_c2(char const   *__s , int __accept1 ,
1763                                    int __accept2 ) ;   1763                                    int __accept2 ) ;
1764 __inline extern char *__strpbrk_c2(char const   *__s , int __accept1 ,   1764 __inline extern char *__strpbrk_c2(char const   *__s , int __accept1 ,
1765                                    int __accept2 )   1765                                    int __accept2 )
1766 {   1766 {
1767   char *tmp ;   1767   char *tmp ;
1768     1768  
1769   {   1769   {
1770   while (1) {   1770   while (1) {
1771     if ((int const   )*__s != 0) {   1771     if ((int const   )*__s != 0) {
1772       if ((int const   )*__s != (int const   )__accept1) {   1772       if ((int const   )*__s != (int const   )__accept1) {
1773         if ((int const   )*__s != (int const   )__accept2) {   1773         if ((int const   )*__s != (int const   )__accept2) {
1774     1774  
1775         } else {   1775         } else {
1776           break;   1776           break;
1777         }   1777         }
1778       } else {   1778       } else {
1779         break;   1779         break;
1780       }   1780       }
1781     } else {   1781     } else {
1782       break;   1782       break;
1783     }   1783     }
1784     __s ++;   1784     __s ++;
1785   }   1785   }
1786   if ((int const   )*__s == 0) {   1786   if ((int const   )*__s == 0) {
1787     tmp = (char *)((void *)0);   1787     tmp = (char *)((void *)0);
1788   } else {   1788   } else {
1789     tmp = (char *)((size_t )__s);   1789     tmp = (char *)((size_t )__s);
1790   }   1790   }
1791   return (tmp);   1791   return (tmp);
1792 }   1792 }
1793 }   1793 }
1794 __inline extern char *__strpbrk_c3(char const   *__s , int __accept1 ,   1794 __inline extern char *__strpbrk_c3(char const   *__s , int __accept1 ,
1795                                    int __accept2 , int __accept3 ) ;   1795                                    int __accept2 , int __accept3 ) ;
1796 __inline extern char *__strpbrk_c3(char const   *__s , int __accept1 ,   1796 __inline extern char *__strpbrk_c3(char const   *__s , int __accept1 ,
1797                                    int __accept2 , int __accept3 )   1797                                    int __accept2 , int __accept3 )
1798 {   1798 {
1799   char *tmp ;   1799   char *tmp ;
1800     1800  
1801   {   1801   {
1802   while (1) {   1802   while (1) {
1803     if ((int const   )*__s != 0) {   1803     if ((int const   )*__s != 0) {
1804       if ((int const   )*__s != (int const   )__accept1) {   1804       if ((int const   )*__s != (int const   )__accept1) {
1805         if ((int const   )*__s != (int const   )__accept2) {   1805         if ((int const   )*__s != (int const   )__accept2) {
1806           if ((int const   )*__s != (int const   )__accept3) {   1806           if ((int const   )*__s != (int const   )__accept3) {
1807     1807  
1808           } else {   1808           } else {
1809             break;   1809             break;
1810           }   1810           }
1811         } else {   1811         } else {
1812           break;   1812           break;
1813         }   1813         }
1814       } else {   1814       } else {
1815         break;   1815         break;
1816       }   1816       }
1817     } else {   1817     } else {
1818       break;   1818       break;
1819     }   1819     }
1820     __s ++;   1820     __s ++;
1821   }   1821   }
1822   if ((int const   )*__s == 0) {   1822   if ((int const   )*__s == 0) {
1823     tmp = (char *)((void *)0);   1823     tmp = (char *)((void *)0);
1824   } else {   1824   } else {
1825     tmp = (char *)((size_t )__s);   1825     tmp = (char *)((size_t )__s);
1826   }   1826   }
1827   return (tmp);   1827   return (tmp);
1828 }   1828 }
1829 }   1829 }
1830 __inline extern char *__strtok_r_1c(char *__s , char __sep , char **__nextp ) ;   1830 __inline extern char *__strtok_r_1c(char *__s , char __sep , char **__nextp ) ;
1831 __inline extern char *__strtok_r_1c(char *__s , char __sep , char **__nextp )   1831 __inline extern char *__strtok_r_1c(char *__s , char __sep , char **__nextp )
1832 {   1832 {
1833   char *__result ;   1833   char *__result ;
1834   char *tmp ;   1834   char *tmp ;
1835   char *tmp___0 ;   1835   char *tmp___0 ;
1836     1836  
1837   {   1837   {
1838   if ((unsigned int )__s == (unsigned int )((void *)0)) {   1838   if ((unsigned int )__s == (unsigned int )((void *)0)) {
1839     __s = *__nextp;   1839     __s = *__nextp;
1840   } else {   1840   } else {
1841     1841  
1842   }   1842   }
1843   while ((int )*__s == (int )__sep) {   1843   while ((int )*__s == (int )__sep) {
1844     __s ++;   1844     __s ++;
1845   }   1845   }
1846   __result = (char *)((void *)0);   1846   __result = (char *)((void *)0);
1847   if ((int )*__s != 0) {   1847   if ((int )*__s != 0) {
1848     tmp = __s;   1848     tmp = __s;
1849     __s ++;   1849     __s ++;
1850     __result = tmp;   1850     __result = tmp;
1851     while ((int )*__s != 0) {   1851     while ((int )*__s != 0) {
1852       tmp___0 = __s;   1852       tmp___0 = __s;
1853       __s ++;   1853       __s ++;
1854       if ((int )*tmp___0 == (int )__sep) {   1854       if ((int )*tmp___0 == (int )__sep) {
1855         *(__s + -1) = (char )'\000';   1855         *(__s + -1) = (char )'\000';
1856         break;   1856         break;
1857       } else {   1857       } else {
1858     1858  
1859       }   1859       }
1860     }   1860     }
1861   } else {   1861   } else {
1862     1862  
1863   }   1863   }
1864   *__nextp = __s;   1864   *__nextp = __s;
1865   return (__result);   1865   return (__result);
1866 }   1866 }
1867 }   1867 }
1868 extern char *__strsep_g(char **__stringp , char const   *__delim ) ;   1868 extern char *__strsep_g(char **__stringp , char const   *__delim ) ;
1869 __inline extern char *__strsep_1c(char **__s , char __reject ) ;   1869 __inline extern char *__strsep_1c(char **__s , char __reject ) ;
1870 __inline extern char *__strsep_1c(char **__s , char __reject )   1870 __inline extern char *__strsep_1c(char **__s , char __reject )
1871 {   1871 {
1872   register char *__retval ;   1872   register char *__retval ;
1873   char *tmp ;   1873   char *tmp ;
1874   char *tmp___0 ;   1874   char *tmp___0 ;
1875   void *tmp___1 ;   1875   void *tmp___1 ;
1876   char *tmp___2 ;   1876   char *tmp___2 ;
1877     1877  
1878   {   1878   {
1879   __retval = *__s;   1879   __retval = *__s;
1880   if ((unsigned int )__retval != (unsigned int )((void *)0)) {   1880   if ((unsigned int )__retval != (unsigned int )((void *)0)) {
1881     tmp___2 = __builtin_strchr(__retval, (int )__reject);   1881     tmp___2 = __builtin_strchr(__retval, (int )__reject);
1882     tmp___0 = tmp___2;   1882     tmp___0 = tmp___2;
1883     *__s = tmp___0;   1883     *__s = tmp___0;
1884     if ((unsigned int )tmp___0 != (unsigned int )((void *)0)) {   1884     if ((unsigned int )tmp___0 != (unsigned int )((void *)0)) {
1885       tmp = *__s;   1885       tmp = *__s;
1886       (*__s) ++;   1886       (*__s) ++;
1887       *tmp = (char )'\000';   1887       *tmp = (char )'\000';
1888     } else {   1888     } else {
1889     1889  
1890     }   1890     }
1891   } else {   1891   } else {
1892     1892  
1893   }   1893   }
1894   return (__retval);   1894   return (__retval);
1895 }   1895 }
1896 }   1896 }
1897 __inline extern char *__strsep_2c(char **__s , char __reject1 , char __reject2 ) ;   1897 __inline extern char *__strsep_2c(char **__s , char __reject1 , char __reject2 ) ;
1898 __inline extern char *__strsep_2c(char **__s , char __reject1 , char __reject2 )   1898 __inline extern char *__strsep_2c(char **__s , char __reject1 , char __reject2 )
1899 {   1899 {
1900   register char *__retval ;   1900   register char *__retval ;
1901   register char *__cp ;   1901   register char *__cp ;
1902   char *tmp ;   1902   char *tmp ;
1903     1903  
1904   {   1904   {
1905   __retval = *__s;   1905   __retval = *__s;
1906   if ((unsigned int )__retval != (unsigned int )((void *)0)) {   1906   if ((unsigned int )__retval != (unsigned int )((void *)0)) {
1907     __cp = __retval;   1907     __cp = __retval;
1908     while (1) {   1908     while (1) {
1909       if ((int )*__cp == 0) {   1909       if ((int )*__cp == 0) {
1910         __cp = (char *)((void *)0);   1910         __cp = (char *)((void *)0);
1911         break;   1911         break;
1912       } else {   1912       } else {
1913     1913  
1914       }   1914       }
1915       if ((int )*__cp == (int )__reject1) {   1915       if ((int )*__cp == (int )__reject1) {
1916         tmp = __cp;   1916         tmp = __cp;
1917         __cp ++;   1917         __cp ++;
1918         *tmp = (char )'\000';   1918         *tmp = (char )'\000';
1919         break;   1919         break;
1920       } else   1920       } else
1921       if ((int )*__cp == (int )__reject2) {   1921       if ((int )*__cp == (int )__reject2) {
1922         tmp = __cp;   1922         tmp = __cp;
1923         __cp ++;   1923         __cp ++;
1924         *tmp = (char )'\000';   1924         *tmp = (char )'\000';
1925         break;   1925         break;
1926       } else {   1926       } else {
1927     1927  
1928       }   1928       }
1929       __cp ++;   1929       __cp ++;
1930     }   1930     }
1931     *__s = __cp;   1931     *__s = __cp;
1932   } else {   1932   } else {
1933     1933  
1934   }   1934   }
1935   return (__retval);   1935   return (__retval);
1936 }   1936 }
1937 }   1937 }
1938 __inline extern char *__strsep_3c(char **__s , char __reject1 , char __reject2 ,   1938 __inline extern char *__strsep_3c(char **__s , char __reject1 , char __reject2 ,
1939                                   char __reject3 ) ;   1939                                   char __reject3 ) ;
1940 __inline extern char *__strsep_3c(char **__s , char __reject1 , char __reject2 ,   1940 __inline extern char *__strsep_3c(char **__s , char __reject1 , char __reject2 ,
1941                                   char __reject3 )   1941                                   char __reject3 )
1942 {   1942 {
1943   register char *__retval ;   1943   register char *__retval ;
1944   register char *__cp ;   1944   register char *__cp ;
1945   char *tmp ;   1945   char *tmp ;
1946     1946  
1947   {   1947   {
1948   __retval = *__s;   1948   __retval = *__s;
1949   if ((unsigned int )__retval != (unsigned int )((void *)0)) {   1949   if ((unsigned int )__retval != (unsigned int )((void *)0)) {
1950     __cp = __retval;   1950     __cp = __retval;
1951     while (1) {   1951     while (1) {
1952       if ((int )*__cp == 0) {   1952       if ((int )*__cp == 0) {
1953         __cp = (char *)((void *)0);   1953         __cp = (char *)((void *)0);
1954         break;   1954         break;
1955       } else {   1955       } else {
1956     1956  
1957       }   1957       }
1958       if ((int )*__cp == (int )__reject1) {   1958       if ((int )*__cp == (int )__reject1) {
1959         tmp = __cp;   1959         tmp = __cp;
1960         __cp ++;   1960         __cp ++;
1961         *tmp = (char )'\000';   1961         *tmp = (char )'\000';
1962         break;   1962         break;
1963       } else   1963       } else
1964       if ((int )*__cp == (int )__reject2) {   1964       if ((int )*__cp == (int )__reject2) {
1965         tmp = __cp;   1965         tmp = __cp;
1966         __cp ++;   1966         __cp ++;
1967         *tmp = (char )'\000';   1967         *tmp = (char )'\000';
1968         break;   1968         break;
1969       } else   1969       } else
1970       if ((int )*__cp == (int )__reject3) {   1970       if ((int )*__cp == (int )__reject3) {
1971         tmp = __cp;   1971         tmp = __cp;
1972         __cp ++;   1972         __cp ++;
1973         *tmp = (char )'\000';   1973         *tmp = (char )'\000';
1974         break;   1974         break;
1975       } else {   1975       } else {
1976     1976  
1977       }   1977       }
1978       __cp ++;   1978       __cp ++;
1979     }   1979     }
1980     *__s = __cp;   1980     *__s = __cp;
1981   } else {   1981   } else {
1982     1982  
1983   }   1983   }
1984   return (__retval);   1984   return (__retval);
1985 }   1985 }
1986 }   1986 }
1987 extern  __attribute__((__nothrow__)) char *__strdup(char const   *__string )  __attribute__((__malloc__)) ;   1987 extern  __attribute__((__nothrow__)) char *__strdup(char const   *__string )  __attribute__((__malloc__)) ;
1988 extern  __attribute__((__nothrow__)) char *__strndup(char const   *__string ,   1988 extern  __attribute__((__nothrow__)) char *__strndup(char const   *__string ,
1989                                                      size_t __n )  __attribute__((__malloc__)) ;   1989                                                      size_t __n )  __attribute__((__malloc__)) ;
1990 extern  __attribute__((__nothrow__)) unsigned short const   **__ctype_b_loc(void)  __attribute__((__const__)) ;   1990 extern  __attribute__((__nothrow__)) unsigned short const   **__ctype_b_loc(void)  __attribute__((__const__)) ;
1991 extern  __attribute__((__nothrow__)) __int32_t const   **__ctype_tolower_loc(void)  __attribute__((__const__)) ;   1991 extern  __attribute__((__nothrow__)) __int32_t const   **__ctype_tolower_loc(void)  __attribute__((__const__)) ;
1992 extern  __attribute__((__nothrow__)) __int32_t const   **__ctype_toupper_loc(void)  __attribute__((__const__)) ;   1992 extern  __attribute__((__nothrow__)) __int32_t const   **__ctype_toupper_loc(void)  __attribute__((__const__)) ;
1993 extern  __attribute__((__nothrow__)) int isalnum(int  ) ;   1993 extern  __attribute__((__nothrow__)) int isalnum(int  ) ;
1994 extern  __attribute__((__nothrow__)) int isalpha(int  ) ;   1994 extern  __attribute__((__nothrow__)) int isalpha(int  ) ;
1995 extern  __attribute__((__nothrow__)) int iscntrl(int  ) ;   1995 extern  __attribute__((__nothrow__)) int iscntrl(int  ) ;
1996 extern  __attribute__((__nothrow__)) int isdigit(int  ) ;   1996 extern  __attribute__((__nothrow__)) int isdigit(int  ) ;
1997 extern  __attribute__((__nothrow__)) int islower(int  ) ;   1997 extern  __attribute__((__nothrow__)) int islower(int  ) ;
1998 extern  __attribute__((__nothrow__)) int isgraph(int  ) ;   1998 extern  __attribute__((__nothrow__)) int isgraph(int  ) ;
1999 extern  __attribute__((__nothrow__)) int isprint(int  ) ;   1999 extern  __attribute__((__nothrow__)) int isprint(int  ) ;
2000 extern  __attribute__((__nothrow__)) int ispunct(int  ) ;   2000 extern  __attribute__((__nothrow__)) int ispunct(int  ) ;
2001 extern  __attribute__((__nothrow__)) int isspace(int  ) ;   2001 extern  __attribute__((__nothrow__)) int isspace(int  ) ;
2002 extern  __attribute__((__nothrow__)) int isupper(int  ) ;   2002 extern  __attribute__((__nothrow__)) int isupper(int  ) ;
2003 extern  __attribute__((__nothrow__)) int isxdigit(int  ) ;   2003 extern  __attribute__((__nothrow__)) int isxdigit(int  ) ;
2004 __inline extern  __attribute__((__nothrow__)) int tolower(int __c ) ;   2004 __inline extern  __attribute__((__nothrow__)) int tolower(int __c ) ;
2005 __inline extern  __attribute__((__nothrow__)) int toupper(int __c ) ;   2005 __inline extern  __attribute__((__nothrow__)) int toupper(int __c ) ;
2006 extern  __attribute__((__nothrow__)) int isblank(int  ) ;   2006 extern  __attribute__((__nothrow__)) int isblank(int  ) ;
2007 extern  __attribute__((__nothrow__)) int isascii(int __c ) ;   2007 extern  __attribute__((__nothrow__)) int isascii(int __c ) ;
2008 extern  __attribute__((__nothrow__)) int toascii(int __c ) ;   2008 extern  __attribute__((__nothrow__)) int toascii(int __c ) ;
2009 extern  __attribute__((__nothrow__)) int _toupper(int  ) ;   2009 extern  __attribute__((__nothrow__)) int _toupper(int  ) ;
2010 extern  __attribute__((__nothrow__)) int _tolower(int  ) ;   2010 extern  __attribute__((__nothrow__)) int _tolower(int  ) ;
2011 __inline extern  __attribute__((__nothrow__)) int tolower(int __c ) ;   2011 __inline extern  __attribute__((__nothrow__)) int tolower(int __c ) ;
2012 __inline extern int tolower(int __c )   2012 __inline extern int tolower(int __c )
2013 {   2013 {
2014   __int32_t const   **tmp ;   2014   __int32_t const   **tmp ;
2015   __int32_t tmp___0 ;   2015   __int32_t tmp___0 ;
2016     2016  
2017   {   2017   {
2018   if (__c >= -128) {   2018   if (__c >= -128) {
2019     if (__c < 256) {   2019     if (__c < 256) {
2020       tmp = __ctype_tolower_loc();   2020       tmp = __ctype_tolower_loc();
2021       tmp___0 = *(*tmp + __c);   2021       tmp___0 = *(*tmp + __c);
2022     } else {   2022     } else {
2023       tmp___0 = (__int32_t const   )__c;   2023       tmp___0 = (__int32_t const   )__c;
2024     }   2024     }
2025   } else {   2025   } else {
2026     tmp___0 = (__int32_t const   )__c;   2026     tmp___0 = (__int32_t const   )__c;
2027   }   2027   }
2028   return ((int )tmp___0);   2028   return ((int )tmp___0);
2029 }   2029 }
2030 }   2030 }
2031 __inline extern  __attribute__((__nothrow__)) int toupper(int __c ) ;   2031 __inline extern  __attribute__((__nothrow__)) int toupper(int __c ) ;
2032 __inline extern int toupper(int __c )   2032 __inline extern int toupper(int __c )
2033 {   2033 {
2034   __int32_t const   **tmp ;   2034   __int32_t const   **tmp ;
2035   __int32_t tmp___0 ;   2035   __int32_t tmp___0 ;
2036     2036  
2037   {   2037   {
2038   if (__c >= -128) {   2038   if (__c >= -128) {
2039     if (__c < 256) {   2039     if (__c < 256) {
2040       tmp = __ctype_toupper_loc();   2040       tmp = __ctype_toupper_loc();
2041       tmp___0 = *(*tmp + __c);   2041       tmp___0 = *(*tmp + __c);
2042     } else {   2042     } else {
2043       tmp___0 = (__int32_t const   )__c;   2043       tmp___0 = (__int32_t const   )__c;
2044     }   2044     }
2045   } else {   2045   } else {
2046     tmp___0 = (__int32_t const   )__c;   2046     tmp___0 = (__int32_t const   )__c;
2047   }   2047   }
2048   return ((int )tmp___0);   2048   return ((int )tmp___0);
2049 }   2049 }
2050 }   2050 }
2051 extern  __attribute__((__nothrow__)) int isalnum_l(int  , __locale_t  ) ;   2051 extern  __attribute__((__nothrow__)) int isalnum_l(int  , __locale_t  ) ;
2052 extern  __attribute__((__nothrow__)) int isalpha_l(int  , __locale_t  ) ;   2052 extern  __attribute__((__nothrow__)) int isalpha_l(int  , __locale_t  ) ;
2053 extern  __attribute__((__nothrow__)) int iscntrl_l(int  , __locale_t  ) ;   2053 extern  __attribute__((__nothrow__)) int iscntrl_l(int  , __locale_t  ) ;
2054 extern  __attribute__((__nothrow__)) int isdigit_l(int  , __locale_t  ) ;   2054 extern  __attribute__((__nothrow__)) int isdigit_l(int  , __locale_t  ) ;
2055 extern  __attribute__((__nothrow__)) int islower_l(int  , __locale_t  ) ;   2055 extern  __attribute__((__nothrow__)) int islower_l(int  , __locale_t  ) ;
2056 extern  __attribute__((__nothrow__)) int isgraph_l(int  , __locale_t  ) ;   2056 extern  __attribute__((__nothrow__)) int isgraph_l(int  , __locale_t  ) ;
2057 extern  __attribute__((__nothrow__)) int isprint_l(int  , __locale_t  ) ;   2057 extern  __attribute__((__nothrow__)) int isprint_l(int  , __locale_t  ) ;
2058 extern  __attribute__((__nothrow__)) int ispunct_l(int  , __locale_t  ) ;   2058 extern  __attribute__((__nothrow__)) int ispunct_l(int  , __locale_t  ) ;
2059 extern  __attribute__((__nothrow__)) int isspace_l(int  , __locale_t  ) ;   2059 extern  __attribute__((__nothrow__)) int isspace_l(int  , __locale_t  ) ;
2060 extern  __attribute__((__nothrow__)) int isupper_l(int  , __locale_t  ) ;   2060 extern  __attribute__((__nothrow__)) int isupper_l(int  , __locale_t  ) ;
2061 extern  __attribute__((__nothrow__)) int isxdigit_l(int  , __locale_t  ) ;   2061 extern  __attribute__((__nothrow__)) int isxdigit_l(int  , __locale_t  ) ;
2062 extern  __attribute__((__nothrow__)) int isblank_l(int  , __locale_t  ) ;   2062 extern  __attribute__((__nothrow__)) int isblank_l(int  , __locale_t  ) ;
2063 extern  __attribute__((__nothrow__)) int __tolower_l(int __c , __locale_t __l ) ;   2063 extern  __attribute__((__nothrow__)) int __tolower_l(int __c , __locale_t __l ) ;
2064 extern  __attribute__((__nothrow__)) int tolower_l(int __c , __locale_t __l ) ;   2064 extern  __attribute__((__nothrow__)) int tolower_l(int __c , __locale_t __l ) ;
2065 extern  __attribute__((__nothrow__)) int __toupper_l(int __c , __locale_t __l ) ;   2065 extern  __attribute__((__nothrow__)) int __toupper_l(int __c , __locale_t __l ) ;
2066 extern  __attribute__((__nothrow__)) int toupper_l(int __c , __locale_t __l ) ;   2066 extern  __attribute__((__nothrow__)) int toupper_l(int __c , __locale_t __l ) ;
2067 extern  __attribute__((__nothrow__,   2067 extern  __attribute__((__nothrow__,
2068 __noreturn__)) void __assert_fail(char const   *__assertion ,   2068 __noreturn__)) void __assert_fail(char const   *__assertion ,
2069                                   char const   *__file , unsigned int __line ,   2069                                   char const   *__file , unsigned int __line ,
2070                                   char const   *__function ) ;   2070                                   char const   *__function ) ;
2071 extern  __attribute__((__nothrow__,   2071 extern  __attribute__((__nothrow__,
2072 __noreturn__)) void __assert_perror_fail(int __errnum , char const   *__file ,   2072 __noreturn__)) void __assert_perror_fail(int __errnum , char const   *__file ,
2073                                          unsigned int __line ,   2073                                          unsigned int __line ,
2074                                          char const   *__function ) ;   2074                                          char const   *__function ) ;
2075 extern  __attribute__((__nothrow__,   2075 extern  __attribute__((__nothrow__,
2076 __noreturn__)) void __assert(char const   *__assertion , char const   *__file ,   2076 __noreturn__)) void __assert(char const   *__assertion , char const   *__file ,
2077                              int __line ) ;   2077                              int __line ) ;
2078 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) access)(char const   *__name ,   2078 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) access)(char const   *__name ,
2079                                                                                    int __type ) ;   2079                                                                                    int __type ) ;
2080 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) faccessat)(int __fd ,   2080 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) faccessat)(int __fd ,
2081                                                                                       char const   *__file ,   2081                                                                                       char const   *__file ,
2082                                                                                       int __type ,   2082                                                                                       int __type ,
2083                                                                                       int __flag ) ;   2083                                                                                       int __flag ) ;
2084 extern  __attribute__((__nothrow__)) __off64_t lseek(int __fd ,   2084 extern  __attribute__((__nothrow__)) __off64_t lseek(int __fd ,
2085                                                      __off64_t __offset ,   2085                                                      __off64_t __offset ,
2086                                                      int __whence )  __asm__("lseek64")  ;   2086                                                      int __whence )  __asm__("lseek64")  ;
2087 extern int close(int __fd ) ;   2087 extern int close(int __fd ) ;
2088 extern ssize_t read(int __fd , void *__buf , size_t __nbytes ) ;   2088 extern ssize_t read(int __fd , void *__buf , size_t __nbytes ) ;
2089 extern ssize_t write(int __fd , void const   *__buf , size_t __n ) ;   2089 extern ssize_t write(int __fd , void const   *__buf , size_t __n ) ;
2090 extern ssize_t pread(int __fd , void *__buf , size_t __nbytes ,   2090 extern ssize_t pread(int __fd , void *__buf , size_t __nbytes ,
2091                      __off64_t __offset )  __asm__("pread64")  ;   2091                      __off64_t __offset )  __asm__("pread64")  ;
2092 extern ssize_t pwrite(int __fd , void const   *__buf , size_t __nbytes ,   2092 extern ssize_t pwrite(int __fd , void const   *__buf , size_t __nbytes ,
2093                       __off64_t __offset )  __asm__("pwrite64")  ;   2093                       __off64_t __offset )  __asm__("pwrite64")  ;
2094 extern  __attribute__((__nothrow__)) int pipe(int *__pipedes ) ;   2094 extern  __attribute__((__nothrow__)) int pipe(int *__pipedes ) ;
2095 extern  __attribute__((__nothrow__)) unsigned int alarm(unsigned int __seconds ) ;   2095 extern  __attribute__((__nothrow__)) unsigned int alarm(unsigned int __seconds ) ;
2096 extern unsigned int sleep(unsigned int __seconds ) ;   2096 extern unsigned int sleep(unsigned int __seconds ) ;
2097 extern  __attribute__((__nothrow__)) __useconds_t ualarm(__useconds_t __value ,   2097 extern  __attribute__((__nothrow__)) __useconds_t ualarm(__useconds_t __value ,
2098                                                          __useconds_t __interval ) ;   2098                                                          __useconds_t __interval ) ;
2099 extern int usleep(__useconds_t __useconds ) ;   2099 extern int usleep(__useconds_t __useconds ) ;
2100 extern int pause(void) ;   2100 extern int pause(void) ;
2101 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) chown)(char const   *__file ,   2101 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) chown)(char const   *__file ,
2102                                                                                   __uid_t __owner ,   2102                                                                                   __uid_t __owner ,
2103                                                                                   __gid_t __group ) ;   2103                                                                                   __gid_t __group ) ;
2104 extern  __attribute__((__nothrow__)) int fchown(int __fd , __uid_t __owner ,   2104 extern  __attribute__((__nothrow__)) int fchown(int __fd , __uid_t __owner ,
2105                                                 __gid_t __group ) ;   2105                                                 __gid_t __group ) ;
2106 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) lchown)(char const   *__file ,   2106 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) lchown)(char const   *__file ,
2107                                                                                    __uid_t __owner ,   2107                                                                                    __uid_t __owner ,
2108                                                                                    __gid_t __group ) ;   2108                                                                                    __gid_t __group ) ;
2109 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) fchownat)(int __fd ,   2109 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) fchownat)(int __fd ,
2110                                                                                      char const   *__file ,   2110                                                                                      char const   *__file ,
2111                                                                                      __uid_t __owner ,   2111                                                                                      __uid_t __owner ,
2112                                                                                      __gid_t __group ,   2112                                                                                      __gid_t __group ,
2113                                                                                      int __flag ) ;   2113                                                                                      int __flag ) ;
2114 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) chdir)(char const   *__path ) ;   2114 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) chdir)(char const   *__path ) ;
2115 extern  __attribute__((__nothrow__)) int fchdir(int __fd ) ;   2115 extern  __attribute__((__nothrow__)) int fchdir(int __fd ) ;
2116 extern  __attribute__((__nothrow__)) char *getcwd(char *__buf , size_t __size ) ;   2116 extern  __attribute__((__nothrow__)) char *getcwd(char *__buf , size_t __size ) ;
2117 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) getwd)(char *__buf )  __attribute__((__deprecated__)) ;   2117 extern  __attribute__((__nothrow__)) char *( __attribute__((__nonnull__(1))) getwd)(char *__buf )  __attribute__((__deprecated__)) ;
2118 extern  __attribute__((__nothrow__)) int dup(int __fd ) ;   2118 extern  __attribute__((__nothrow__)) int dup(int __fd ) ;
2119 extern  __attribute__((__nothrow__)) int dup2(int __fd , int __fd2 ) ;   2119 extern  __attribute__((__nothrow__)) int dup2(int __fd , int __fd2 ) ;
2120 extern char **__environ ;   2120 extern char **__environ ;
2121 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execve)(char const   *__path ,   2121 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execve)(char const   *__path ,
2122                                                                                      char * const  *__argv ,   2122                                                                                      char * const  *__argv ,
2123                                                                                      char * const  *__envp ) ;   2123                                                                                      char * const  *__envp ) ;
2124 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) fexecve)(int __fd ,   2124 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) fexecve)(int __fd ,
2125                                                                                     char * const  *__argv ,   2125                                                                                     char * const  *__argv ,
2126                                                                                     char * const  *__envp ) ;   2126                                                                                     char * const  *__envp ) ;
2127 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execv)(char const   *__path ,   2127 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execv)(char const   *__path ,
2128                                                                                     char * const  *__argv ) ;   2128                                                                                     char * const  *__argv ) ;
2129 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execle)(char const   *__path ,   2129 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execle)(char const   *__path ,
2130                                                                                      char const   *__arg   2130                                                                                      char const   *__arg
2131                                                                                      , ...) ;   2131                                                                                      , ...) ;
2132 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execl)(char const   *__path ,   2132 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execl)(char const   *__path ,
2133                                                                                     char const   *__arg   2133                                                                                     char const   *__arg
2134                                                                                     , ...) ;   2134                                                                                     , ...) ;
2135 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execvp)(char const   *__file ,   2135 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execvp)(char const   *__file ,
2136                                                                                      char * const  *__argv ) ;   2136                                                                                      char * const  *__argv ) ;
2137 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execlp)(char const   *__file ,   2137 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) execlp)(char const   *__file ,
2138                                                                                      char const   *__arg   2138                                                                                      char const   *__arg
2139                                                                                      , ...) ;   2139                                                                                      , ...) ;
2140 extern  __attribute__((__nothrow__)) int nice(int __inc ) ;   2140 extern  __attribute__((__nothrow__)) int nice(int __inc ) ;
2141 extern  __attribute__((__noreturn__)) void _exit(int __status ) ;   2141 extern  __attribute__((__noreturn__)) void _exit(int __status ) ;
2142 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) pathconf)(char const   *__path ,   2142 extern  __attribute__((__nothrow__)) long ( __attribute__((__nonnull__(1))) pathconf)(char const   *__path ,
2143                                                                                       int __name ) ;   2143                                                                                       int __name ) ;
2144 extern  __attribute__((__nothrow__)) long fpathconf(int __fd , int __name ) ;   2144 extern  __attribute__((__nothrow__)) long fpathconf(int __fd , int __name ) ;
2145 extern  __attribute__((__nothrow__)) long sysconf(int __name ) ;   2145 extern  __attribute__((__nothrow__)) long sysconf(int __name ) ;
2146 extern  __attribute__((__nothrow__)) size_t confstr(int __name , char *__buf ,   2146 extern  __attribute__((__nothrow__)) size_t confstr(int __name , char *__buf ,
2147                                                     size_t __len ) ;   2147                                                     size_t __len ) ;
2148 extern  __attribute__((__nothrow__)) __pid_t getpid(void) ;   2148 extern  __attribute__((__nothrow__)) __pid_t getpid(void) ;
2149 extern  __attribute__((__nothrow__)) __pid_t getppid(void) ;   2149 extern  __attribute__((__nothrow__)) __pid_t getppid(void) ;
2150 extern  __attribute__((__nothrow__)) __pid_t getpgrp(void) ;   2150 extern  __attribute__((__nothrow__)) __pid_t getpgrp(void) ;
2151 extern  __attribute__((__nothrow__)) __pid_t __getpgid(__pid_t __pid ) ;   2151 extern  __attribute__((__nothrow__)) __pid_t __getpgid(__pid_t __pid ) ;
2152 extern  __attribute__((__nothrow__)) __pid_t getpgid(__pid_t __pid ) ;   2152 extern  __attribute__((__nothrow__)) __pid_t getpgid(__pid_t __pid ) ;
2153 extern  __attribute__((__nothrow__)) int setpgid(__pid_t __pid , __pid_t __pgid ) ;   2153 extern  __attribute__((__nothrow__)) int setpgid(__pid_t __pid , __pid_t __pgid ) ;
2154 extern  __attribute__((__nothrow__)) int setpgrp(void) ;   2154 extern  __attribute__((__nothrow__)) int setpgrp(void) ;
2155 extern  __attribute__((__nothrow__)) __pid_t setsid(void) ;   2155 extern  __attribute__((__nothrow__)) __pid_t setsid(void) ;
2156 extern  __attribute__((__nothrow__)) __pid_t getsid(__pid_t __pid ) ;   2156 extern  __attribute__((__nothrow__)) __pid_t getsid(__pid_t __pid ) ;
2157 extern  __attribute__((__nothrow__)) __uid_t getuid(void) ;   2157 extern  __attribute__((__nothrow__)) __uid_t getuid(void) ;
2158 extern  __attribute__((__nothrow__)) __uid_t geteuid(void) ;   2158 extern  __attribute__((__nothrow__)) __uid_t geteuid(void) ;
2159 extern  __attribute__((__nothrow__)) __gid_t getgid(void) ;   2159 extern  __attribute__((__nothrow__)) __gid_t getgid(void) ;
2160 extern  __attribute__((__nothrow__)) __gid_t getegid(void) ;   2160 extern  __attribute__((__nothrow__)) __gid_t getegid(void) ;
2161 extern  __attribute__((__nothrow__)) int getgroups(int __size , __gid_t *__list ) ;   2161 extern  __attribute__((__nothrow__)) int getgroups(int __size , __gid_t *__list ) ;
2162 extern  __attribute__((__nothrow__)) int setuid(__uid_t __uid ) ;   2162 extern  __attribute__((__nothrow__)) int setuid(__uid_t __uid ) ;
2163 extern  __attribute__((__nothrow__)) int setreuid(__uid_t __ruid ,   2163 extern  __attribute__((__nothrow__)) int setreuid(__uid_t __ruid ,
2164                                                   __uid_t __euid ) ;   2164                                                   __uid_t __euid ) ;
2165 extern  __attribute__((__nothrow__)) int seteuid(__uid_t __uid ) ;   2165 extern  __attribute__((__nothrow__)) int seteuid(__uid_t __uid ) ;
2166 extern  __attribute__((__nothrow__)) int setgid(__gid_t __gid ) ;   2166 extern  __attribute__((__nothrow__)) int setgid(__gid_t __gid ) ;
2167 extern  __attribute__((__nothrow__)) int setregid(__gid_t __rgid ,   2167 extern  __attribute__((__nothrow__)) int setregid(__gid_t __rgid ,
2168                                                   __gid_t __egid ) ;   2168                                                   __gid_t __egid ) ;
2169 extern  __attribute__((__nothrow__)) int setegid(__gid_t __gid ) ;   2169 extern  __attribute__((__nothrow__)) int setegid(__gid_t __gid ) ;
2170 extern  __attribute__((__nothrow__)) __pid_t fork(void) ;   2170 extern  __attribute__((__nothrow__)) __pid_t fork(void) ;
2171 extern  __attribute__((__nothrow__)) __pid_t vfork(void) ;   2171 extern  __attribute__((__nothrow__)) __pid_t vfork(void) ;
2172 extern  __attribute__((__nothrow__)) char *ttyname(int __fd ) ;   2172 extern  __attribute__((__nothrow__)) char *ttyname(int __fd ) ;
2173 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) ttyname_r)(int __fd ,   2173 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) ttyname_r)(int __fd ,
2174                                                                                       char *__buf ,   2174                                                                                       char *__buf ,
2175                                                                                       size_t __buflen ) ;   2175                                                                                       size_t __buflen ) ;
2176 extern  __attribute__((__nothrow__)) int isatty(int __fd ) ;   2176 extern  __attribute__((__nothrow__)) int isatty(int __fd ) ;
2177 extern  __attribute__((__nothrow__)) int ttyslot(void) ;   2177 extern  __attribute__((__nothrow__)) int ttyslot(void) ;
2178 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) link)(char const   *__from ,   2178 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) link)(char const   *__from ,
2179                                                                                    char const   *__to ) ;   2179                                                                                    char const   *__to ) ;
2180 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2,4))) linkat)(int __fromfd ,   2180 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2,4))) linkat)(int __fromfd ,
2181                                                                                      char const   *__from ,   2181                                                                                      char const   *__from ,
2182                                                                                      int __tofd ,   2182                                                                                      int __tofd ,
2183                                                                                      char const   *__to ,   2183                                                                                      char const   *__to ,
2184                                                                                      int __flags ) ;   2184                                                                                      int __flags ) ;
2185 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) symlink)(char const   *__from ,   2185 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,2))) symlink)(char const   *__from ,
2186                                                                                       char const   *__to ) ;   2186                                                                                       char const   *__to ) ;
2187 extern  __attribute__((__nothrow__)) ssize_t ( __attribute__((__nonnull__(1,2))) readlink)(char const   * __restrict  __path ,   2187 extern  __attribute__((__nothrow__)) ssize_t ( __attribute__((__nonnull__(1,2))) readlink)(char const   * __restrict  __path ,
2188                                                                                            char * __restrict  __buf ,   2188                                                                                            char * __restrict  __buf ,
2189                                                                                            size_t __len ) ;   2189                                                                                            size_t __len ) ;
2190 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,3))) symlinkat)(char const   *__from ,   2190 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1,3))) symlinkat)(char const   *__from ,
2191                                                                                         int __tofd ,   2191                                                                                         int __tofd ,
2192                                                                                         char const   *__to ) ;   2192                                                                                         char const   *__to ) ;
2193 extern  __attribute__((__nothrow__)) ssize_t ( __attribute__((__nonnull__(2,3))) readlinkat)(int __fd ,   2193 extern  __attribute__((__nothrow__)) ssize_t ( __attribute__((__nonnull__(2,3))) readlinkat)(int __fd ,
2194                                                                                              char const   * __restrict  __path ,   2194                                                                                              char const   * __restrict  __path ,
2195                                                                                              char * __restrict  __buf ,   2195                                                                                              char * __restrict  __buf ,
2196                                                                                              size_t __len ) ;   2196                                                                                              size_t __len ) ;
2197 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) unlink)(char const   *__name ) ;   2197 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) unlink)(char const   *__name ) ;
2198 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) unlinkat)(int __fd ,   2198 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(2))) unlinkat)(int __fd ,
2199                                                                                      char const   *__name ,   2199                                                                                      char const   *__name ,
2200                                                                                      int __flag ) ;   2200                                                                                      int __flag ) ;
2201 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) rmdir)(char const   *__path ) ;   2201 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) rmdir)(char const   *__path ) ;
2202 extern  __attribute__((__nothrow__)) __pid_t tcgetpgrp(int __fd ) ;   2202 extern  __attribute__((__nothrow__)) __pid_t tcgetpgrp(int __fd ) ;
2203 extern  __attribute__((__nothrow__)) int tcsetpgrp(int __fd , __pid_t __pgrp_id ) ;   2203 extern  __attribute__((__nothrow__)) int tcsetpgrp(int __fd , __pid_t __pgrp_id ) ;
2204 extern char *getlogin(void) ;   2204 extern char *getlogin(void) ;
2205 extern int ( __attribute__((__nonnull__(1))) getlogin_r)(char *__name ,   2205 extern int ( __attribute__((__nonnull__(1))) getlogin_r)(char *__name ,
2206                                                          size_t __name_len ) ;   2206                                                          size_t __name_len ) ;
2207 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) setlogin)(char const   *__name ) ;   2207 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) setlogin)(char const   *__name ) ;
2208 extern char *optarg ;   2208 extern char *optarg ;
2209 extern int optind ;   2209 extern int optind ;
2210 extern int opterr ;   2210 extern int opterr ;
2211 extern int optopt ;   2211 extern int optopt ;
2212 extern  __attribute__((__nothrow__)) int getopt(int ___argc ,   2212 extern  __attribute__((__nothrow__)) int getopt(int ___argc ,
2213                                                 char * const  *___argv ,   2213                                                 char * const  *___argv ,
2214                                                 char const   *__shortopts ) ;   2214                                                 char const   *__shortopts ) ;
2215 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) gethostname)(char *__name ,   2215 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) gethostname)(char *__name ,
2216                                                                                         size_t __len ) ;   2216                                                                                         size_t __len ) ;
2217 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) sethostname)(char const   *__name ,   2217 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) sethostname)(char const   *__name ,
2218                                                                                         size_t __len ) ;   2218                                                                                         size_t __len ) ;
2219 extern  __attribute__((__nothrow__)) int sethostid(long __id ) ;   2219 extern  __attribute__((__nothrow__)) int sethostid(long __id ) ;
2220 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) getdomainname)(char *__name ,   2220 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) getdomainname)(char *__name ,
2221                                                                                           size_t __len ) ;   2221                                                                                           size_t __len ) ;
2222 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) setdomainname)(char const   *__name ,   2222 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) setdomainname)(char const   *__name ,
2223                                                                                           size_t __len ) ;   2223                                                                                           size_t __len ) ;
2224 extern  __attribute__((__nothrow__)) int vhangup(void) ;   2224 extern  __attribute__((__nothrow__)) int vhangup(void) ;
2225 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) revoke)(char const   *__file ) ;   2225 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) revoke)(char const   *__file ) ;
2226 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) profil)(unsigned short *__sample_buffer ,   2226 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) profil)(unsigned short *__sample_buffer ,
2227                                                                                    size_t __size ,   2227                                                                                    size_t __size ,
2228                                                                                    size_t __offset ,   2228                                                                                    size_t __offset ,
2229                                                                                    unsigned int __scale ) ;   2229                                                                                    unsigned int __scale ) ;
2230 extern  __attribute__((__nothrow__)) int acct(char const   *__name ) ;   2230 extern  __attribute__((__nothrow__)) int acct(char const   *__name ) ;
2231 extern  __attribute__((__nothrow__)) char *getusershell(void) ;   2231 extern  __attribute__((__nothrow__)) char *getusershell(void) ;
2232 extern  __attribute__((__nothrow__)) void endusershell(void) ;   2232 extern  __attribute__((__nothrow__)) void endusershell(void) ;
2233 extern  __attribute__((__nothrow__)) void setusershell(void) ;   2233 extern  __attribute__((__nothrow__)) void setusershell(void) ;
2234 extern  __attribute__((__nothrow__)) int daemon(int __nochdir , int __noclose ) ;   2234 extern  __attribute__((__nothrow__)) int daemon(int __nochdir , int __noclose ) ;
2235 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) chroot)(char const   *__path ) ;   2235 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) chroot)(char const   *__path ) ;
2236 extern char *( __attribute__((__nonnull__(1))) getpass)(char const   *__prompt ) ;   2236 extern char *( __attribute__((__nonnull__(1))) getpass)(char const   *__prompt ) ;
2237 extern int fsync(int __fd ) ;   2237 extern int fsync(int __fd ) ;
2238 extern long gethostid(void) ;   2238 extern long gethostid(void) ;
2239 extern  __attribute__((__nothrow__)) void sync(void) ;   2239 extern  __attribute__((__nothrow__)) void sync(void) ;
2240 extern  __attribute__((__nothrow__)) int getpagesize(void)  __attribute__((__const__)) ;   2240 extern  __attribute__((__nothrow__)) int getpagesize(void)  __attribute__((__const__)) ;
2241 extern  __attribute__((__nothrow__)) int getdtablesize(void) ;   2241 extern  __attribute__((__nothrow__)) int getdtablesize(void) ;
2242 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) truncate)(char const   *__file ,   2242 extern  __attribute__((__nothrow__)) int ( __attribute__((__nonnull__(1))) truncate)(char const   *__file ,
2243                                                                                      __off64_t __length )  __asm__("truncate64")  ;   2243                                                                                      __off64_t __length )  __asm__("truncate64")  ;
2244 extern  __attribute__((__nothrow__)) int ftruncate(int __fd ,   2244 extern  __attribute__((__nothrow__)) int ftruncate(int __fd ,
2245                                                    __off64_t __length )  __asm__("ftruncate64")  ;   2245                                                    __off64_t __length )  __asm__("ftruncate64")  ;
2246 extern  __attribute__((__nothrow__)) int brk(void *__addr ) ;   2246 extern  __attribute__((__nothrow__)) int brk(void *__addr ) ;
2247 extern  __attribute__((__nothrow__)) void *sbrk(intptr_t __delta ) ;   2247 extern  __attribute__((__nothrow__)) void *sbrk(intptr_t __delta ) ;
2248 extern  __attribute__((__nothrow__)) long syscall(long __sysno  , ...) ;   2248 extern  __attribute__((__nothrow__)) long syscall(long __sysno  , ...) ;
2249 extern int lockf(int __fd , int __cmd , __off64_t __len )  __asm__("lockf64")  ;   2249 extern int lockf(int __fd , int __cmd , __off64_t __len )  __asm__("lockf64")  ;
2250 extern int fdatasync(int __fildes ) ;   2250 extern int fdatasync(int __fildes ) ;
2251 extern char const   *TIFFGetVersion(void) ;   2251 extern char const   *TIFFGetVersion(void) ;
2252 extern TIFFCodec const   *TIFFFindCODEC(uint16  ) ;   2252 extern TIFFCodec const   *TIFFFindCODEC(uint16  ) ;
2253 extern TIFFCodec *TIFFRegisterCODEC(uint16  , char const   * ,   2253 extern TIFFCodec *TIFFRegisterCODEC(uint16  , char const   * ,
2254                                     int (*)(TIFF * , int  ) ) ;   2254                                     int (*)(TIFF * , int  ) ) ;
2255 extern void TIFFUnRegisterCODEC(TIFFCodec * ) ;   2255 extern void TIFFUnRegisterCODEC(TIFFCodec * ) ;
2256 extern int TIFFIsCODECConfigured(uint16  ) ;   2256 extern int TIFFIsCODECConfigured(uint16  ) ;
2257 extern TIFFCodec *TIFFGetConfiguredCODECs(void) ;   2257 extern TIFFCodec *TIFFGetConfiguredCODECs(void) ;
2258 extern void *_TIFFmalloc(tmsize_t s ) ;   2258 extern void *_TIFFmalloc(tmsize_t s ) ;
2259 extern void *_TIFFrealloc(void *p , tmsize_t s ) ;   2259 extern void *_TIFFrealloc(void *p , tmsize_t s ) ;
2260 extern void _TIFFmemset(void *p , int v , tmsize_t c ) ;   2260 extern void _TIFFmemset(void *p , int v , tmsize_t c ) ;
2261 extern void _TIFFmemcpy(void *d , void const   *s , tmsize_t c ) ;   2261 extern void _TIFFmemcpy(void *d , void const   *s , tmsize_t c ) ;
2262 extern int _TIFFmemcmp(void const   *p1 , void const   *p2 , tmsize_t c ) ;   2262 extern int _TIFFmemcmp(void const   *p1 , void const   *p2 , tmsize_t c ) ;
2263 extern void _TIFFfree(void *p ) ;   2263 extern void _TIFFfree(void *p ) ;
2264 extern int TIFFGetTagListCount(TIFF * ) ;   2264 extern int TIFFGetTagListCount(TIFF * ) ;
2265 extern uint32 TIFFGetTagListEntry(TIFF * , int tag_index ) ;   2265 extern uint32 TIFFGetTagListEntry(TIFF * , int tag_index ) ;
2266 extern TIFFField const   *TIFFFindField(TIFF * , uint32  , TIFFDataType  ) ;   2266 extern TIFFField const   *TIFFFindField(TIFF * , uint32  , TIFFDataType  ) ;
2267 extern TIFFField const   *TIFFFieldWithTag(TIFF * , uint32  ) ;   2267 extern TIFFField const   *TIFFFieldWithTag(TIFF * , uint32  ) ;
2268 extern TIFFField const   *TIFFFieldWithName(TIFF * , char const   * ) ;   2268 extern TIFFField const   *TIFFFieldWithName(TIFF * , char const   * ) ;
2269 extern TIFFTagMethods *TIFFAccessTagMethods(TIFF * ) ;   2269 extern TIFFTagMethods *TIFFAccessTagMethods(TIFF * ) ;
2270 extern void *TIFFGetClientInfo(TIFF * , char const   * ) ;   2270 extern void *TIFFGetClientInfo(TIFF * , char const   * ) ;
2271 extern void TIFFSetClientInfo(TIFF * , void * , char const   * ) ;   2271 extern void TIFFSetClientInfo(TIFF * , void * , char const   * ) ;
2272 extern void TIFFCleanup(TIFF *tif ) ;   2272 extern void TIFFCleanup(TIFF *tif ) ;
2273 extern void TIFFClose(TIFF *tif ) ;   2273 extern void TIFFClose(TIFF *tif ) ;
2274 extern int TIFFFlush(TIFF *tif ) ;   2274 extern int TIFFFlush(TIFF *tif ) ;
2275 extern int TIFFFlushData(TIFF *tif ) ;   2275 extern int TIFFFlushData(TIFF *tif ) ;
2276 extern int TIFFGetField(TIFF *tif , uint32 tag  , ...) ;   2276 extern int TIFFGetField(TIFF *tif , uint32 tag  , ...) ;
2277 extern int TIFFVGetField(TIFF *tif , uint32 tag , va_list ap ) ;   2277 extern int TIFFVGetField(TIFF *tif , uint32 tag , va_list ap ) ;
2278 extern int TIFFGetFieldDefaulted(TIFF *tif , uint32 tag  , ...) ;   2278 extern int TIFFGetFieldDefaulted(TIFF *tif , uint32 tag  , ...) ;
2279 extern int TIFFVGetFieldDefaulted(TIFF *tif , uint32 tag , va_list ap ) ;   2279 extern int TIFFVGetFieldDefaulted(TIFF *tif , uint32 tag , va_list ap ) ;
2280 extern int TIFFReadDirectory(TIFF *tif ) ;   2280 extern int TIFFReadDirectory(TIFF *tif ) ;
2281 extern int TIFFReadCustomDirectory(TIFF *tif , toff_t diroff ,   2281 extern int TIFFReadCustomDirectory(TIFF *tif , toff_t diroff ,
2282                                    TIFFFieldArray const   *infoarray ) ;   2282                                    TIFFFieldArray const   *infoarray ) ;
2283 extern int TIFFReadEXIFDirectory(TIFF *tif , toff_t diroff ) ;   2283 extern int TIFFReadEXIFDirectory(TIFF *tif , toff_t diroff ) ;
2284 extern uint64 TIFFScanlineSize64(TIFF *tif ) ;   2284 extern uint64 TIFFScanlineSize64(TIFF *tif ) ;
2285 extern tmsize_t TIFFScanlineSize(TIFF *tif ) ;   2285 extern tmsize_t TIFFScanlineSize(TIFF *tif ) ;
2286 extern uint64 TIFFRasterScanlineSize64(TIFF *tif ) ;   2286 extern uint64 TIFFRasterScanlineSize64(TIFF *tif ) ;
2287 extern tmsize_t TIFFRasterScanlineSize(TIFF *tif ) ;   2287 extern tmsize_t TIFFRasterScanlineSize(TIFF *tif ) ;
2288 extern uint64 TIFFStripSize64(TIFF *tif ) ;   2288 extern uint64 TIFFStripSize64(TIFF *tif ) ;
2289 extern tmsize_t TIFFStripSize(TIFF *tif ) ;   2289 extern tmsize_t TIFFStripSize(TIFF *tif ) ;
2290 extern uint64 TIFFRawStripSize64(TIFF *tif , uint32 strip ) ;   2290 extern uint64 TIFFRawStripSize64(TIFF *tif , uint32 strip ) ;
2291 extern tmsize_t TIFFRawStripSize(TIFF *tif , uint32 strip ) ;   2291 extern tmsize_t TIFFRawStripSize(TIFF *tif , uint32 strip ) ;
2292 extern uint64 TIFFVStripSize64(TIFF *tif , uint32 nrows ) ;   2292 extern uint64 TIFFVStripSize64(TIFF *tif , uint32 nrows ) ;
2293 extern tmsize_t TIFFVStripSize(TIFF *tif , uint32 nrows ) ;   2293 extern tmsize_t TIFFVStripSize(TIFF *tif , uint32 nrows ) ;
2294 extern uint64 TIFFTileRowSize64(TIFF *tif ) ;   2294 extern uint64 TIFFTileRowSize64(TIFF *tif ) ;
2295 extern tmsize_t TIFFTileRowSize(TIFF *tif ) ;   2295 extern tmsize_t TIFFTileRowSize(TIFF *tif ) ;
2296 extern uint64 TIFFTileSize64(TIFF *tif ) ;   2296 extern uint64 TIFFTileSize64(TIFF *tif ) ;
2297 extern tmsize_t TIFFTileSize(TIFF *tif ) ;   2297 extern tmsize_t TIFFTileSize(TIFF *tif ) ;
2298 extern uint64 TIFFVTileSize64(TIFF *tif , uint32 nrows ) ;   2298 extern uint64 TIFFVTileSize64(TIFF *tif , uint32 nrows ) ;
2299 extern tmsize_t TIFFVTileSize(TIFF *tif , uint32 nrows ) ;   2299 extern tmsize_t TIFFVTileSize(TIFF *tif , uint32 nrows ) ;
2300 extern uint32 TIFFDefaultStripSize(TIFF *tif , uint32 request ) ;   2300 extern uint32 TIFFDefaultStripSize(TIFF *tif , uint32 request ) ;
2301 extern void TIFFDefaultTileSize(TIFF * , uint32 * , uint32 * ) ;   2301 extern void TIFFDefaultTileSize(TIFF * , uint32 * , uint32 * ) ;
2302 extern int TIFFFileno(TIFF * ) ;   2302 extern int TIFFFileno(TIFF * ) ;
2303 extern int TIFFSetFileno(TIFF * , int  ) ;   2303 extern int TIFFSetFileno(TIFF * , int  ) ;
2304 extern thandle_t TIFFClientdata(TIFF * ) ;   2304 extern thandle_t TIFFClientdata(TIFF * ) ;
2305 extern thandle_t TIFFSetClientdata(TIFF * , thandle_t  ) ;   2305 extern thandle_t TIFFSetClientdata(TIFF * , thandle_t  ) ;
2306 extern int TIFFGetMode(TIFF * ) ;   2306 extern int TIFFGetMode(TIFF * ) ;
2307 extern int TIFFSetMode(TIFF * , int  ) ;   2307 extern int TIFFSetMode(TIFF * , int  ) ;
2308 extern int TIFFIsTiled(TIFF * ) ;   2308 extern int TIFFIsTiled(TIFF * ) ;
2309 extern int TIFFIsByteSwapped(TIFF * ) ;   2309 extern int TIFFIsByteSwapped(TIFF * ) ;
2310 extern int TIFFIsUpSampled(TIFF * ) ;   2310 extern int TIFFIsUpSampled(TIFF * ) ;
2311 extern int TIFFIsMSB2LSB(TIFF * ) ;   2311 extern int TIFFIsMSB2LSB(TIFF * ) ;
2312 extern int TIFFIsBigEndian(TIFF * ) ;   2312 extern int TIFFIsBigEndian(TIFF * ) ;
2313 extern TIFFReadWriteProc TIFFGetReadProc(TIFF * ) ;   2313 extern TIFFReadWriteProc TIFFGetReadProc(TIFF * ) ;
2314 extern TIFFReadWriteProc TIFFGetWriteProc(TIFF * ) ;   2314 extern TIFFReadWriteProc TIFFGetWriteProc(TIFF * ) ;
2315 extern TIFFSeekProc TIFFGetSeekProc(TIFF * ) ;   2315 extern TIFFSeekProc TIFFGetSeekProc(TIFF * ) ;
2316 extern TIFFCloseProc TIFFGetCloseProc(TIFF * ) ;   2316 extern TIFFCloseProc TIFFGetCloseProc(TIFF * ) ;
2317 extern TIFFSizeProc TIFFGetSizeProc(TIFF * ) ;   2317 extern TIFFSizeProc TIFFGetSizeProc(TIFF * ) ;
2318 extern TIFFMapFileProc TIFFGetMapFileProc(TIFF * ) ;   2318 extern TIFFMapFileProc TIFFGetMapFileProc(TIFF * ) ;
2319 extern TIFFUnmapFileProc TIFFGetUnmapFileProc(TIFF * ) ;   2319 extern TIFFUnmapFileProc TIFFGetUnmapFileProc(TIFF * ) ;
2320 extern uint32 TIFFCurrentRow(TIFF * ) ;   2320 extern uint32 TIFFCurrentRow(TIFF * ) ;
2321 extern uint16 TIFFCurrentDirectory(TIFF * ) ;   2321 extern uint16 TIFFCurrentDirectory(TIFF * ) ;
2322 extern uint16 TIFFNumberOfDirectories(TIFF * ) ;   2322 extern uint16 TIFFNumberOfDirectories(TIFF * ) ;
2323 extern uint64 TIFFCurrentDirOffset(TIFF * ) ;   2323 extern uint64 TIFFCurrentDirOffset(TIFF * ) ;
2324 extern uint32 TIFFCurrentStrip(TIFF * ) ;   2324 extern uint32 TIFFCurrentStrip(TIFF * ) ;
2325 extern uint32 TIFFCurrentTile(TIFF *tif ) ;   2325 extern uint32 TIFFCurrentTile(TIFF *tif ) ;
2326 extern int TIFFReadBufferSetup(TIFF *tif , void *bp , tmsize_t size ) ;   2326 extern int TIFFReadBufferSetup(TIFF *tif , void *bp , tmsize_t size ) ;
2327 extern int TIFFWriteBufferSetup(TIFF *tif , void *bp , tmsize_t size ) ;   2327 extern int TIFFWriteBufferSetup(TIFF *tif , void *bp , tmsize_t size ) ;
2328 extern int TIFFSetupStrips(TIFF * ) ;   2328 extern int TIFFSetupStrips(TIFF * ) ;
2329 extern int TIFFWriteCheck(TIFF * , int  , char const   * ) ;   2329 extern int TIFFWriteCheck(TIFF * , int  , char const   * ) ;
2330 extern void TIFFFreeDirectory(TIFF * ) ;   2330 extern void TIFFFreeDirectory(TIFF * ) ;
2331 extern int TIFFCreateDirectory(TIFF * ) ;   2331 extern int TIFFCreateDirectory(TIFF * ) ;
2332 extern int TIFFLastDirectory(TIFF * ) ;   2332 extern int TIFFLastDirectory(TIFF * ) ;
2333 extern int TIFFSetDirectory(TIFF * , uint16  ) ;   2333 extern int TIFFSetDirectory(TIFF * , uint16  ) ;
2334 extern int TIFFSetSubDirectory(TIFF * , uint64  ) ;   2334 extern int TIFFSetSubDirectory(TIFF * , uint64  ) ;
2335 extern int TIFFUnlinkDirectory(TIFF * , uint16  ) ;   2335 extern int TIFFUnlinkDirectory(TIFF * , uint16  ) ;
2336 extern int TIFFSetField(TIFF * , uint32   , ...) ;   2336 extern int TIFFSetField(TIFF * , uint32   , ...) ;
2337 extern int TIFFVSetField(TIFF * , uint32  , va_list  ) ;   2337 extern int TIFFVSetField(TIFF * , uint32  , va_list  ) ;
2338 extern int TIFFUnsetField(TIFF * , uint32  ) ;   2338 extern int TIFFUnsetField(TIFF * , uint32  ) ;
2339 extern int TIFFWriteDirectory(TIFF * ) ;   2339 extern int TIFFWriteDirectory(TIFF * ) ;
2340 extern int TIFFCheckpointDirectory(TIFF * ) ;   2340 extern int TIFFCheckpointDirectory(TIFF * ) ;
2341 extern int TIFFRewriteDirectory(TIFF * ) ;   2341 extern int TIFFRewriteDirectory(TIFF * ) ;
2342 extern void TIFFPrintDirectory(TIFF * , FILE * , long  ) ;   2342 extern void TIFFPrintDirectory(TIFF * , FILE * , long  ) ;
2343 extern int TIFFReadScanline(TIFF *tif , void *buf , uint32 row , uint16 sample ) ;   2343 extern int TIFFReadScanline(TIFF *tif , void *buf , uint32 row , uint16 sample ) ;
2344 extern int TIFFWriteScanline(TIFF *tif , void *buf , uint32 row , uint16 sample ) ;   2344 extern int TIFFWriteScanline(TIFF *tif , void *buf , uint32 row , uint16 sample ) ;
2345 extern int TIFFReadRGBAImage(TIFF * , uint32  , uint32  , uint32 * , int  ) ;   2345 extern int TIFFReadRGBAImage(TIFF * , uint32  , uint32  , uint32 * , int  ) ;
2346 extern int TIFFReadRGBAImageOriented(TIFF * , uint32  , uint32  , uint32 * ,   2346 extern int TIFFReadRGBAImageOriented(TIFF * , uint32  , uint32  , uint32 * ,
2347                                      int  , int  ) ;   2347                                      int  , int  ) ;
2348 extern int TIFFReadRGBAStrip(TIFF * , uint32  , uint32 * ) ;   2348 extern int TIFFReadRGBAStrip(TIFF * , uint32  , uint32 * ) ;
2349 extern int TIFFReadRGBATile(TIFF * , uint32  , uint32  , uint32 * ) ;   2349 extern int TIFFReadRGBATile(TIFF * , uint32  , uint32  , uint32 * ) ;
2350 extern int TIFFRGBAImageOK(TIFF * , char * ) ;   2350 extern int TIFFRGBAImageOK(TIFF * , char * ) ;
2351 extern int TIFFRGBAImageBegin(TIFFRGBAImage * , TIFF * , int  , char * ) ;   2351 extern int TIFFRGBAImageBegin(TIFFRGBAImage * , TIFF * , int  , char * ) ;
2352 extern int TIFFRGBAImageGet(TIFFRGBAImage * , uint32 * , uint32  , uint32  ) ;   2352 extern int TIFFRGBAImageGet(TIFFRGBAImage * , uint32 * , uint32  , uint32  ) ;
2353 extern void TIFFRGBAImageEnd(TIFFRGBAImage * ) ;   2353 extern void TIFFRGBAImageEnd(TIFFRGBAImage * ) ;
2354 extern TIFF *TIFFOpen(char const   * , char const   * ) ;   2354 extern TIFF *TIFFOpen(char const   * , char const   * ) ;
2355 extern TIFF *TIFFFdOpen(int  , char const   * , char const   * ) ;   2355 extern TIFF *TIFFFdOpen(int  , char const   * , char const   * ) ;
2356 extern TIFF *TIFFClientOpen(char const   * , char const   * , thandle_t  ,   2356 extern TIFF *TIFFClientOpen(char const   * , char const   * , thandle_t  ,
2357                             tmsize_t (*)(thandle_t  , void * , tmsize_t  ) ,   2357                             tmsize_t (*)(thandle_t  , void * , tmsize_t  ) ,
2358                             tmsize_t (*)(thandle_t  , void * , tmsize_t  ) ,   2358                             tmsize_t (*)(thandle_t  , void * , tmsize_t  ) ,
2359                             toff_t (*)(thandle_t  , toff_t  , int  ) ,   2359                             toff_t (*)(thandle_t  , toff_t  , int  ) ,
2360                             int (*)(thandle_t  ) , toff_t (*)(thandle_t  ) ,   2360                             int (*)(thandle_t  ) , toff_t (*)(thandle_t  ) ,
2361                             int (*)(thandle_t  , void **base , toff_t *size ) ,   2361                             int (*)(thandle_t  , void **base , toff_t *size ) ,
2362                             void (*)(thandle_t  , void *base , toff_t size ) ) ;   2362                             void (*)(thandle_t  , void *base , toff_t size ) ) ;
2363 extern char const   *TIFFFileName(TIFF * ) ;   2363 extern char const   *TIFFFileName(TIFF * ) ;
2364 extern char const   *TIFFSetFileName(TIFF * , char const   * ) ;   2364 extern char const   *TIFFSetFileName(TIFF * , char const   * ) ;
2365 extern void ( /* format attribute */  TIFFError)(char const   * ,   2365 extern void ( /* format attribute */  TIFFError)(char const   * ,
2366                                                  char const   *  , ...) ;   2366                                                  char const   *  , ...) ;
2367 extern void ( /* format attribute */  TIFFErrorExt)(thandle_t  ,   2367 extern void ( /* format attribute */  TIFFErrorExt)(thandle_t  ,
2368                                                     char const   * ,   2368                                                     char const   * ,
2369                                                     char const   *  , ...) ;   2369                                                     char const   *  , ...) ;
2370 extern void ( /* format attribute */  TIFFWarning)(char const   * ,   2370 extern void ( /* format attribute */  TIFFWarning)(char const   * ,
2371                                                    char const   *  , ...) ;   2371                                                    char const   *  , ...) ;
2372 extern void ( /* format attribute */  TIFFWarningExt)(thandle_t  ,   2372 extern void ( /* format attribute */  TIFFWarningExt)(thandle_t  ,
2373                                                       char const   * ,   2373                                                       char const   * ,
2374                                                       char const   *  , ...) ;   2374                                                       char const   *  , ...) ;
2375 extern TIFFErrorHandler TIFFSetErrorHandler(void (*)(char const   * ,   2375 extern TIFFErrorHandler TIFFSetErrorHandler(void (*)(char const   * ,
2376                                                      char const   * , va_list  ) ) ;   2376                                                      char const   * , va_list  ) ) ;
2377 extern TIFFErrorHandlerExt TIFFSetErrorHandlerExt(void (*)(thandle_t  ,   2377 extern TIFFErrorHandlerExt TIFFSetErrorHandlerExt(void (*)(thandle_t  ,
2378                                                            char const   * ,   2378                                                            char const   * ,
2379                                                            char const   * ,   2379                                                            char const   * ,
2380                                                            va_list  ) ) ;   2380                                                            va_list  ) ) ;
2381 extern TIFFErrorHandler TIFFSetWarningHandler(void (*)(char const   * ,   2381 extern TIFFErrorHandler TIFFSetWarningHandler(void (*)(char const   * ,
2382                                                        char const   * ,   2382                                                        char const   * ,
2383                                                        va_list  ) ) ;   2383                                                        va_list  ) ) ;
2384 extern TIFFErrorHandlerExt TIFFSetWarningHandlerExt(void (*)(thandle_t  ,   2384 extern TIFFErrorHandlerExt TIFFSetWarningHandlerExt(void (*)(thandle_t  ,
2385                                                              char const   * ,   2385                                                              char const   * ,
2386                                                              char const   * ,   2386                                                              char const   * ,
2387                                                              va_list  ) ) ;   2387                                                              va_list  ) ) ;
2388 extern TIFFExtendProc TIFFSetTagExtender(void (*)(TIFF * ) ) ;   2388 extern TIFFExtendProc TIFFSetTagExtender(void (*)(TIFF * ) ) ;
2389 extern uint32 TIFFComputeTile(TIFF *tif , uint32 x , uint32 y , uint32 z ,   2389 extern uint32 TIFFComputeTile(TIFF *tif , uint32 x , uint32 y , uint32 z ,
2390                               uint16 s ) ;   2390                               uint16 s ) ;
2391 extern int TIFFCheckTile(TIFF *tif , uint32 x , uint32 y , uint32 z , uint16 s ) ;   2391 extern int TIFFCheckTile(TIFF *tif , uint32 x , uint32 y , uint32 z , uint16 s ) ;
2392 extern uint32 TIFFNumberOfTiles(TIFF * ) ;   2392 extern uint32 TIFFNumberOfTiles(TIFF * ) ;
2393 extern tmsize_t TIFFReadTile(TIFF *tif , void *buf , uint32 x , uint32 y ,   2393 extern tmsize_t TIFFReadTile(TIFF *tif , void *buf , uint32 x , uint32 y ,
2394                              uint32 z , uint16 s ) ;   2394                              uint32 z , uint16 s ) ;
2395 extern tmsize_t TIFFWriteTile(TIFF *tif , void *buf , uint32 x , uint32 y ,   2395 extern tmsize_t TIFFWriteTile(TIFF *tif , void *buf , uint32 x , uint32 y ,
2396                               uint32 z , uint16 s ) ;   2396                               uint32 z , uint16 s ) ;
2397 extern uint32 TIFFComputeStrip(TIFF * , uint32  , uint16  ) ;   2397 extern uint32 TIFFComputeStrip(TIFF * , uint32  , uint16  ) ;
2398 extern uint32 TIFFNumberOfStrips(TIFF * ) ;   2398 extern uint32 TIFFNumberOfStrips(TIFF * ) ;
2399 extern tmsize_t TIFFReadEncodedStrip(TIFF *tif , uint32 strip , void *buf ,   2399 extern tmsize_t TIFFReadEncodedStrip(TIFF *tif , uint32 strip , void *buf ,
2400                                      tmsize_t size ) ;   2400                                      tmsize_t size ) ;
2401 extern tmsize_t TIFFReadRawStrip(TIFF *tif , uint32 strip , void *buf ,   2401 extern tmsize_t TIFFReadRawStrip(TIFF *tif , uint32 strip , void *buf ,
2402                                  tmsize_t size ) ;   2402                                  tmsize_t size ) ;
2403 extern tmsize_t TIFFReadEncodedTile(TIFF *tif , uint32 tile , void *buf ,   2403 extern tmsize_t TIFFReadEncodedTile(TIFF *tif , uint32 tile , void *buf ,
2404                                     tmsize_t size ) ;   2404                                     tmsize_t size ) ;
2405 extern tmsize_t TIFFReadRawTile(TIFF *tif , uint32 tile , void *buf ,   2405 extern tmsize_t TIFFReadRawTile(TIFF *tif , uint32 tile , void *buf ,
2406                                 tmsize_t size ) ;   2406                                 tmsize_t size ) ;
2407 extern tmsize_t TIFFWriteEncodedStrip(TIFF *tif , uint32 strip , void *data ,   2407 extern tmsize_t TIFFWriteEncodedStrip(TIFF *tif , uint32 strip , void *data ,
2408                                       tmsize_t cc ) ;   2408                                       tmsize_t cc ) ;
2409 extern tmsize_t TIFFWriteRawStrip(TIFF *tif , uint32 strip , void *data ,   2409 extern tmsize_t TIFFWriteRawStrip(TIFF *tif , uint32 strip , void *data ,
2410                                   tmsize_t cc ) ;   2410                                   tmsize_t cc ) ;
2411 extern tmsize_t TIFFWriteEncodedTile(TIFF *tif , uint32 tile , void *data ,   2411 extern tmsize_t TIFFWriteEncodedTile(TIFF *tif , uint32 tile , void *data ,
2412                                      tmsize_t cc ) ;   2412                                      tmsize_t cc ) ;
2413 extern tmsize_t TIFFWriteRawTile(TIFF *tif , uint32 tile , void *data ,   2413 extern tmsize_t TIFFWriteRawTile(TIFF *tif , uint32 tile , void *data ,
2414                                  tmsize_t cc ) ;   2414                                  tmsize_t cc ) ;
2415 extern int TIFFDataWidth(TIFFDataType  ) ;   2415 extern int TIFFDataWidth(TIFFDataType  ) ;
2416 extern void TIFFSetWriteOffset(TIFF *tif , toff_t off ) ;   2416 extern void TIFFSetWriteOffset(TIFF *tif , toff_t off ) ;
2417 extern void TIFFSwabShort(uint16 * ) ;   2417 extern void TIFFSwabShort(uint16 * ) ;
2418 extern void TIFFSwabLong(uint32 * ) ;   2418 extern void TIFFSwabLong(uint32 * ) ;
2419 extern void TIFFSwabLong8(uint64 * ) ;   2419 extern void TIFFSwabLong8(uint64 * ) ;
2420 extern void TIFFSwabFloat(float * ) ;   2420 extern void TIFFSwabFloat(float * ) ;
2421 extern void TIFFSwabDouble(double * ) ;   2421 extern void TIFFSwabDouble(double * ) ;
2422 extern void TIFFSwabArrayOfShort(uint16 *wp , tmsize_t n ) ;   2422 extern void TIFFSwabArrayOfShort(uint16 *wp , tmsize_t n ) ;
2423 extern void TIFFSwabArrayOfTriples(uint8 *tp , tmsize_t n ) ;   2423 extern void TIFFSwabArrayOfTriples(uint8 *tp , tmsize_t n ) ;
2424 extern void TIFFSwabArrayOfLong(uint32 *lp , tmsize_t n ) ;   2424 extern void TIFFSwabArrayOfLong(uint32 *lp , tmsize_t n ) ;
2425 extern void TIFFSwabArrayOfLong8(uint64 *lp , tmsize_t n ) ;   2425 extern void TIFFSwabArrayOfLong8(uint64 *lp , tmsize_t n ) ;
2426 extern void TIFFSwabArrayOfFloat(float *fp , tmsize_t n ) ;   2426 extern void TIFFSwabArrayOfFloat(float *fp , tmsize_t n ) ;
2427 extern void TIFFSwabArrayOfDouble(double *dp , tmsize_t n ) ;   2427 extern void TIFFSwabArrayOfDouble(double *dp , tmsize_t n ) ;
2428 extern void TIFFReverseBits(uint8 *cp , tmsize_t n ) ;   2428 extern void TIFFReverseBits(uint8 *cp , tmsize_t n ) ;
2429 extern unsigned char const   *TIFFGetBitRevTable(int  ) ;   2429 extern unsigned char const   *TIFFGetBitRevTable(int  ) ;
2430 extern double LogL16toY(int  ) ;   2430 extern double LogL16toY(int  ) ;
2431 extern double LogL10toY(int  ) ;   2431 extern double LogL10toY(int  ) ;
2432 extern void XYZtoRGB24(float * , uint8 * ) ;   2432 extern void XYZtoRGB24(float * , uint8 * ) ;
2433 extern int uv_decode(double * , double * , int  ) ;   2433 extern int uv_decode(double * , double * , int  ) ;
2434 extern void LogLuv24toXYZ(uint32  , float * ) ;   2434 extern void LogLuv24toXYZ(uint32  , float * ) ;
2435 extern void LogLuv32toXYZ(uint32  , float * ) ;   2435 extern void LogLuv32toXYZ(uint32  , float * ) ;
2436 extern int LogL16fromY(double  , int  ) ;   2436 extern int LogL16fromY(double  , int  ) ;
2437 extern int LogL10fromY(double  , int  ) ;   2437 extern int LogL10fromY(double  , int  ) ;
2438 extern int uv_encode(double  , double  , int  ) ;   2438 extern int uv_encode(double  , double  , int  ) ;
2439 extern uint32 LogLuv24fromXYZ(float * , int  ) ;   2439 extern uint32 LogLuv24fromXYZ(float * , int  ) ;
2440 extern uint32 LogLuv32fromXYZ(float * , int  ) ;   2440 extern uint32 LogLuv32fromXYZ(float * , int  ) ;
2441 extern int TIFFCIELabToRGBInit(TIFFCIELabToRGB * , TIFFDisplay * , float * ) ;   2441 extern int TIFFCIELabToRGBInit(TIFFCIELabToRGB * , TIFFDisplay * , float * ) ;
2442 extern void TIFFCIELabToXYZ(TIFFCIELabToRGB * , uint32  , int32  , int32  ,   2442 extern void TIFFCIELabToXYZ(TIFFCIELabToRGB * , uint32  , int32  , int32  ,
2443                             float * , float * , float * ) ;   2443                             float * , float * , float * ) ;
2444 extern void TIFFXYZToRGB(TIFFCIELabToRGB * , float  , float  , float  ,   2444 extern void TIFFXYZToRGB(TIFFCIELabToRGB * , float  , float  , float  ,
2445                          uint32 * , uint32 * , uint32 * ) ;   2445                          uint32 * , uint32 * , uint32 * ) ;
2446 extern int TIFFYCbCrToRGBInit(TIFFYCbCrToRGB * , float * , float * ) ;   2446 extern int TIFFYCbCrToRGBInit(TIFFYCbCrToRGB * , float * , float * ) ;
2447 extern void TIFFYCbCrtoRGB(TIFFYCbCrToRGB * , uint32  , int32  , int32  ,   2447 extern void TIFFYCbCrtoRGB(TIFFYCbCrToRGB * , uint32  , int32  , int32  ,
2448                            uint32 * , uint32 * , uint32 * ) ;   2448                            uint32 * , uint32 * , uint32 * ) ;
2449 extern int TIFFMergeFieldInfo(TIFF * , TIFFFieldInfo const   * , uint32  ) ;   2449 extern int TIFFMergeFieldInfo(TIFF * , TIFFFieldInfo const   * , uint32  ) ;
2450 extern TIFFFieldInfo const   *TIFFFindFieldInfo(TIFF * , uint32  ,   2450 extern TIFFFieldInfo const   *TIFFFindFieldInfo(TIFF * , uint32  ,
2451                                                 TIFFDataType  ) ;   2451                                                 TIFFDataType  ) ;
2452 extern TIFFFieldInfo const   *TIFFFindFieldInfoByName(TIFF * , char const   * ,   2452 extern TIFFFieldInfo const   *TIFFFindFieldInfoByName(TIFF * , char const   * ,
2453                                                       TIFFDataType  ) ;   2453                                                       TIFFDataType  ) ;
2454 static int outtiled  =    -1;   2454 static int outtiled  =    -1;
2455 static uint32 tilewidth  ;   2455 static uint32 tilewidth  ;
2456 static uint32 tilelength  ;   2456 static uint32 tilelength  ;
2457 static uint16 config  ;   2457 static uint16 config  ;
2458 static uint16 compression  ;   2458 static uint16 compression  ;
2459 static uint16 predictor  ;   2459 static uint16 predictor  ;
2460 static uint16 fillorder  ;   2460 static uint16 fillorder  ;
2461 static uint16 orientation  ;   2461 static uint16 orientation  ;
2462 static uint32 rowsperstrip  ;   2462 static uint32 rowsperstrip  ;
2463 static uint32 g3opts  ;   2463 static uint32 g3opts  ;
2464 static int ignore  =    0;   2464 static int ignore  =    0;
2465 static uint32 defg3opts  =    (uint32 )-1;   2465 static uint32 defg3opts  =    (uint32 )-1;
2466 static int quality  =    75;   2466 static int quality  =    75;
2467 static int jpegcolormode  =    1;   2467 static int jpegcolormode  =    1;
2468 static uint16 defcompression  =    (uint16 )-1;   2468 static uint16 defcompression  =    (uint16 )-1;
2469 static uint16 defpredictor  =    (uint16 )-1;   2469 static uint16 defpredictor  =    (uint16 )-1;
2470 static int tiffcp(TIFF *in , TIFF *out ) ;   2470 static int tiffcp(TIFF *in , TIFF *out ) ;
2471 static int processCompressOptions(char *opt ) ;   2471 static int processCompressOptions(char *opt ) ;
2472 static void usage(void) ;   2472 static void usage(void) ;
2473 static char comma  =    (char )',';   2473 static char comma  =    (char )',';
2474 static TIFF *bias  =    (TIFF *)((void *)0);   2474 static TIFF *bias  =    (TIFF *)((void *)0);
2475 static int pageNum  =    0;   2475 static int pageNum  =    0;
2476 static int nextSrcImage(TIFF *tif , char **imageSpec )   2476 static int nextSrcImage(TIFF *tif , char **imageSpec )
2477 {   2477 {
2478   char *start ;   2478   char *start ;
2479   tdir_t nextImage ;   2479   tdir_t nextImage ;
2480   long tmp ;   2480   long tmp ;
2481   char const   *tmp___0 ;   2481   char const   *tmp___0 ;
2482   int tmp___1 ;   2482   int tmp___1 ;
2483   char const   *tmp___2 ;   2483   char const   *tmp___2 ;
2484     2484  
2485   {   2485   {
2486   if ((int )*(*imageSpec) == (int )comma) {   2486   if ((int )*(*imageSpec) == (int )comma) {
2487     start = *imageSpec + 1;   2487     start = *imageSpec + 1;
2488     tmp = strtol((char const   */* __restrict  */)start,   2488     tmp = strtol((char const   */* __restrict  */)start,
2489                  (char **/* __restrict  */)imageSpec, 0);   2489                  (char **/* __restrict  */)imageSpec, 0);
2490     nextImage = (tdir_t )tmp;   2490     nextImage = (tdir_t )tmp;
2491     if ((unsigned int )start == (unsigned int )*imageSpec) {   2491     if ((unsigned int )start == (unsigned int )*imageSpec) {
2492       nextImage = TIFFCurrentDirectory(tif);   2492       nextImage = TIFFCurrentDirectory(tif);
2493     } else {   2493     } else {
2494     2494  
2495     }   2495     }
2496     if (*(*imageSpec)) {   2496     if (*(*imageSpec)) {
2497       if ((int )*(*imageSpec) == (int )comma) {   2497       if ((int )*(*imageSpec) == (int )comma) {
2498         if ((int )*(*imageSpec + 1) == 0) {   2498         if ((int )*(*imageSpec + 1) == 0) {
2499           *imageSpec = (char *)((void *)0);   2499           *imageSpec = (char *)((void *)0);
2500         } else {   2500         } else {
2501     2501  
2502         }   2502         }
2503       } else {   2503       } else {
2504         tmp___0 = TIFFFileName(tif);   2504         tmp___0 = TIFFFileName(tif);
2505         fprintf((FILE */* __restrict  */)stderr,   2505         fprintf((FILE */* __restrict  */)stderr,
2506                 (char const   */* __restrict  */)"Expected a %c separated image # list after %s\n",   2506                 (char const   */* __restrict  */)"Expected a %c separated image # list after %s\n",
2507                 (int )comma, tmp___0);   2507                 (int )comma, tmp___0);
2508         exit(-4);   2508         exit(-4);
2509       }   2509       }
2510     } else {   2510     } else {
2511     2511  
2512     }   2512     }
2513     tmp___1 = TIFFSetDirectory(tif, nextImage);   2513     tmp___1 = TIFFSetDirectory(tif, nextImage);
2514     if (tmp___1) {   2514     if (tmp___1) {
2515       return (1);   2515       return (1);
2516     } else {   2516     } else {
2517     2517  
2518     }   2518     }
2519     tmp___2 = TIFFFileName(tif);   2519     tmp___2 = TIFFFileName(tif);
2520     fprintf((FILE */* __restrict  */)stderr,   2520     fprintf((FILE */* __restrict  */)stderr,
2521             (char const   */* __restrict  */)"%s%c%d not found!\n", tmp___2,   2521             (char const   */* __restrict  */)"%s%c%d not found!\n", tmp___2,
2522             (int )comma, (int )nextImage);   2522             (int )comma, (int )nextImage);
2523   } else {   2523   } else {
2524     2524  
2525   }   2525   }
2526   return (0);   2526   return (0);
2527 }   2527 }
2528 }   2528 }
2529 static TIFF *openSrcImage(char **imageSpec )   2529 static TIFF *openSrcImage(char **imageSpec )
2530 {   2530 {
2531   TIFF *tif ;   2531   TIFF *tif ;
2532   char *fn ;   2532   char *fn ;
2533   void *tmp ;   2533   void *tmp ;
2534   char *tmp___0 ;   2534   char *tmp___0 ;
2535   int tmp___1 ;   2535   int tmp___1 ;
2536     2536  
2537   {   2537   {
2538   fn = *imageSpec;   2538   fn = *imageSpec;
2539   tmp___0 = __builtin_strchr(fn, (int )comma);   2539   tmp___0 = __builtin_strchr(fn, (int )comma);
2540   *imageSpec = tmp___0;   2540   *imageSpec = tmp___0;
2541   if (*imageSpec) {   2541   if (*imageSpec) {
2542     *(*imageSpec) = (char )'\000';   2542     *(*imageSpec) = (char )'\000';
2543     tif = TIFFOpen((char const   *)fn, "r");   2543     tif = TIFFOpen((char const   *)fn, "r");
2544     if (! *(*imageSpec + 1)) {   2544     if (! *(*imageSpec + 1)) {
2545       *imageSpec = (char *)((void *)0);   2545       *imageSpec = (char *)((void *)0);
2546       return (tif);   2546       return (tif);
2547     } else {   2547     } else {
2548     2548  
2549     }   2549     }
2550     if (tif) {   2550     if (tif) {
2551       *(*imageSpec) = comma;   2551       *(*imageSpec) = comma;
2552       tmp___1 = nextSrcImage(tif, imageSpec);   2552       tmp___1 = nextSrcImage(tif, imageSpec);
2553       if (tmp___1) {   2553       if (tmp___1) {
2554     2554  
2555       } else {   2555       } else {
2556         TIFFClose(tif);   2556         TIFFClose(tif);
2557         tif = (TIFF *)((void *)0);   2557         tif = (TIFF *)((void *)0);
2558       }   2558       }
2559     } else {   2559     } else {
2560     2560  
2561     }   2561     }
2562   } else {   2562   } else {
2563     tif = TIFFOpen((char const   *)fn, "r");   2563     tif = TIFFOpen((char const   *)fn, "r");
2564   }   2564   }
2565   return (tif);   2565   return (tif);
2566 }   2566 }
2567 }   2567 }
2568 int main(int argc , char **argv )   2568 int main(int argc , char **argv )
2569 {   2569 {
2570   uint16 defconfig ;   2570   uint16 defconfig ;
2571   uint16 deffillorder ;   2571   uint16 deffillorder ;
2572   uint32 deftilewidth ;   2572   uint32 deftilewidth ;
2573   uint32 deftilelength ;   2573   uint32 deftilelength ;
2574   uint32 defrowsperstrip ;   2574   uint32 defrowsperstrip ;
2575   uint64 diroff ;   2575   uint64 diroff ;
2576   TIFF *in ;   2576   TIFF *in ;
2577   TIFF *out ;   2577   TIFF *out ;
2578   char mode[10] ;   2578   char mode[10] ;
2579   char *mp ;   2579   char *mp ;
2580   int c ;   2580   int c ;
2581   char *tmp ;   2581   char *tmp ;
2582   uint16 samples ;   2582   uint16 samples ;
2583   char **biasFn ;   2583   char **biasFn ;
2584   int tmp___0 ;   2584   int tmp___0 ;
2585   int tmp___1 ;   2585   int tmp___1 ;
2586   size_t __s1_len ;   2586   size_t __s1_len ;
2587   size_t __s2_len ;   2587   size_t __s2_len ;
2588   int tmp___2 ;   2588   int tmp___2 ;
2589   int tmp___3 ;   2589   int tmp___3 ;
2590   int tmp___4 ;   2590   int tmp___4 ;
2591   unsigned char const   *__s2 ;   2591   unsigned char const   *__s2 ;
2592   register int __result ;   2592   register int __result ;
2593   int tmp___5 ;   2593   int tmp___5 ;
2594   unsigned char const   *__s1 ;   2594   unsigned char const   *__s1 ;
2595   register int __result___0 ;   2595   register int __result___0 ;
2596   int tmp___6 ;   2596   int tmp___6 ;
2597   int tmp___7 ;   2597   int tmp___7 ;
2598   int tmp___8 ;   2598   int tmp___8 ;
2599   size_t __s1_len___0 ;   2599   size_t __s1_len___0 ;
2600   size_t __s2_len___0 ;   2600   size_t __s2_len___0 ;
2601   int tmp___9 ;   2601   int tmp___9 ;
2602   int tmp___10 ;   2602   int tmp___10 ;
2603   int tmp___11 ;   2603   int tmp___11 ;
2604   unsigned char const   *__s2___0 ;   2604   unsigned char const   *__s2___0 ;
2605   register int __result___1 ;   2605   register int __result___1 ;
2606   int tmp___12 ;   2606   int tmp___12 ;
2607   unsigned char const   *__s1___0 ;   2607   unsigned char const   *__s1___0 ;
2608   register int __result___2 ;   2608   register int __result___2 ;
2609   int tmp___13 ;   2609   int tmp___13 ;
2610   int tmp___14 ;   2610   int tmp___14 ;
2611   int tmp___15 ;   2611   int tmp___15 ;
2612   int tmp___16 ;   2612   int tmp___16 ;
2613   unsigned long tmp___17 ;   2613   unsigned long tmp___17 ;
2614   size_t __s1_len___1 ;   2614   size_t __s1_len___1 ;
2615   size_t __s2_len___1 ;   2615   size_t __s2_len___1 ;
2616   int tmp___18 ;   2616   int tmp___18 ;
2617   int tmp___19 ;   2617   int tmp___19 ;
2618   int tmp___20 ;   2618   int tmp___20 ;
2619   unsigned char const   *__s2___1 ;   2619   unsigned char const   *__s2___1 ;
2620   register int __result___3 ;   2620   register int __result___3 ;
2621   int tmp___21 ;   2621   int tmp___21 ;
2622   unsigned char const   *__s1___1 ;   2622   unsigned char const   *__s1___1 ;
2623   register int __result___4 ;   2623   register int __result___4 ;
2624   int tmp___22 ;   2624   int tmp___22 ;
2625   int tmp___23 ;   2625   int tmp___23 ;
2626   int tmp___24 ;   2626   int tmp___24 ;
2627   size_t __s1_len___2 ;   2627   size_t __s1_len___2 ;
2628   size_t __s2_len___2 ;   2628   size_t __s2_len___2 ;
2629   int tmp___25 ;   2629   int tmp___25 ;
2630   int tmp___26 ;   2630   int tmp___26 ;
2631   int tmp___27 ;   2631   int tmp___27 ;
2632   unsigned char const   *__s2___2 ;   2632   unsigned char const   *__s2___2 ;
2633   register int __result___5 ;   2633   register int __result___5 ;
2634   int tmp___28 ;   2634   int tmp___28 ;
2635   unsigned char const   *__s1___2 ;   2635   unsigned char const   *__s1___2 ;
2636   register int __result___6 ;   2636   register int __result___6 ;
2637   int tmp___29 ;   2637   int tmp___29 ;
2638   int tmp___30 ;   2638   int tmp___30 ;
2639   int tmp___31 ;   2639   int tmp___31 ;
2640   long tmp___32 ;   2640   long tmp___32 ;
2641   int tmp___33 ;   2641   int tmp___33 ;
2642   char *tmp___34 ;   2642   char *tmp___34 ;
2643   char *tmp___35 ;   2643   char *tmp___35 ;
2644   char *tmp___36 ;   2644   char *tmp___36 ;
2645   char *tmp___37 ;   2645   char *tmp___37 ;
2646   char *tmp___38 ;   2646   char *tmp___38 ;
2647   char *imageCursor ;   2647   char *imageCursor ;
2648   char const   *tmp___39 ;   2648   char const   *tmp___39 ;
2649   int tmp___40 ;   2649   int tmp___40 ;
2650   int tmp___41 ;   2650   int tmp___41 ;
2651   int tmp___42 ;   2651   int tmp___42 ;
2652   int tmp___43 ;   2652   int tmp___43 ;
2653   int tmp___44 ;   2653   int tmp___44 ;
2654     2654  
2655   {   2655   {
2656   defconfig = (uint16 )-1;   2656   defconfig = (uint16 )-1;
2657   deffillorder = (uint16 )0;   2657   deffillorder = (uint16 )0;
2658   deftilewidth = (uint32 )-1;   2658   deftilewidth = (uint32 )-1;
2659   deftilelength = (uint32 )-1;   2659   deftilelength = (uint32 )-1;
2660   defrowsperstrip = (uint32 )0;   2660   defrowsperstrip = (uint32 )0;
2661   diroff = (uint64 )0;   2661   diroff = (uint64 )0;
2662   mp = mode;   2662   mp = mode;
2663   tmp = mp;   2663   tmp = mp;
2664   mp ++;   2664   mp ++;
2665   *tmp = (char )'w';   2665   *tmp = (char )'w';
2666   *mp = (char )'\000';   2666   *mp = (char )'\000';
2667   while (1) {   2667   while (1) {
2668     c = getopt(argc, (char * const  *)argv, ",:b:c:f:l:o:z:p:r:w:aistBLMC8");   2668     c = getopt(argc, (char * const  *)argv, ",:b:c:f:l:o:z:p:r:w:aistBLMC8");
2669     if (c != -1) {   2669     if (c != -1) {
2670     2670  
2671     } else {   2671     } else {
2672       break;   2672       break;
2673     }   2673     }
2674     switch (c) {   2674     switch (c) {
2675     case 44:   2675     case 44:
2676     if ((int )*(optarg + 0) != 61) {   2676     if ((int )*(optarg + 0) != 61) {
2677       usage();   2677       usage();
2678     } else {   2678     } else {
2679     2679  
2680     }   2680     }
2681     comma = *(optarg + 1);   2681     comma = *(optarg + 1);
2682     break;   2682     break;
2683     case 98:   2683     case 98:
2684     if (bias) {   2684     if (bias) {
2685       fputs((char const   */* __restrict  */)"Only 1 bias image may be specified\n",   2685       fputs((char const   */* __restrict  */)"Only 1 bias image may be specified\n",
2686             (FILE */* __restrict  */)stderr);   2686             (FILE */* __restrict  */)stderr);
2687       exit(-2);   2687       exit(-2);
2688     } else {   2688     } else {
2689     2689  
2690     }   2690     }
2691     samples = (uint16 )-1;   2691     samples = (uint16 )-1;
2692     biasFn = & optarg;   2692     biasFn = & optarg;
2693     bias = openSrcImage(biasFn);   2693     bias = openSrcImage(biasFn);
2694     if (! bias) {   2694     if (! bias) {
2695       exit(-5);   2695       exit(-5);
2696     } else {   2696     } else {
2697     2697  
2698     }   2698     }
2699     tmp___0 = TIFFIsTiled(bias);   2699     tmp___0 = TIFFIsTiled(bias);
2700     if (tmp___0) {   2700     if (tmp___0) {
2701       fputs((char const   */* __restrict  */)"Bias image must be organized in strips\n",   2701       fputs((char const   */* __restrict  */)"Bias image must be organized in strips\n",
2702             (FILE */* __restrict  */)stderr);   2702             (FILE */* __restrict  */)stderr);
2703       exit(-7);   2703       exit(-7);
2704     } else {   2704     } else {
2705     2705  
2706     }   2706     }
2707     TIFFGetField(bias, (uint32 )277, & samples);   2707     TIFFGetField(bias, (uint32 )277, & samples);
2708     if ((int )samples != 1) {   2708     if ((int )samples != 1) {
2709       fputs((char const   */* __restrict  */)"Bias image must be monochrome\n",   2709       fputs((char const   */* __restrict  */)"Bias image must be monochrome\n",
2710             (FILE */* __restrict  */)stderr);   2710             (FILE */* __restrict  */)stderr);
2711       exit(-7);   2711       exit(-7);
2712     } else {   2712     } else {
2713     2713  
2714     }   2714     }
2715     break;   2715     break;
2716     case 97:   2716     case 97:
2717     mode[0] = (char )'a';   2717     mode[0] = (char )'a';
2718     break;   2718     break;
2719     case 99:   2719     case 99:
2720     tmp___1 = processCompressOptions(optarg);   2720     tmp___1 = processCompressOptions(optarg);
2721     if (tmp___1) {   2721     if (tmp___1) {
2722     2722  
2723     } else {   2723     } else {
2724       usage();   2724       usage();
2725     }   2725     }
2726     break;   2726     break;
2727     case 102:   2727     case 102:
2728     if (0) {   2728     if (0) {
2729       __s1_len___0 = strlen((char const   *)optarg);   2729       __s1_len___0 = strlen((char const   *)optarg);
2730       __s2_len___0 = strlen("lsb2msb");   2730       __s2_len___0 = strlen("lsb2msb");
2731       if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {   2731       if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {
2732         goto _L___2;   2732         goto _L___2;
2733       } else   2733       } else
2734       if (__s1_len___0 >= 4U) {   2734       if (__s1_len___0 >= 4U) {
2735         _L___2: /* CIL Label */   2735         _L___2: /* CIL Label */
2736         if (! ((size_t )((void const   *)("lsb2msb" + 1)) - (size_t )((void const   *)"lsb2msb") == 1U)) {   2736         if (! ((size_t )((void const   *)("lsb2msb" + 1)) - (size_t )((void const   *)"lsb2msb") == 1U)) {
2737           tmp___15 = 1;   2737           tmp___15 = 1;
2738         } else   2738         } else
2739         if (__s2_len___0 >= 4U) {   2739         if (__s2_len___0 >= 4U) {
2740           tmp___15 = 1;   2740           tmp___15 = 1;
2741         } else {   2741         } else {
2742           tmp___15 = 0;   2742           tmp___15 = 0;
2743         }   2743         }
2744       } else {   2744       } else {
2745         tmp___15 = 0;   2745         tmp___15 = 0;
2746       }   2746       }
2747       if (tmp___15) {   2747       if (tmp___15) {
2748         tmp___10 = __builtin_strcmp((char const   *)optarg, "lsb2msb");   2748         tmp___10 = __builtin_strcmp((char const   *)optarg, "lsb2msb");
2749         tmp___14 = tmp___10;   2749         tmp___14 = tmp___10;
2750       } else {   2750       } else {
2751         tmp___13 = __builtin_strcmp((char const   *)optarg, "lsb2msb");   2751         tmp___13 = __builtin_strcmp((char const   *)optarg, "lsb2msb");
2752         tmp___14 = tmp___13;   2752         tmp___14 = tmp___13;
2753       }   2753       }
2754     } else {   2754     } else {
2755       tmp___13 = __builtin_strcmp((char const   *)optarg, "lsb2msb");   2755       tmp___13 = __builtin_strcmp((char const   *)optarg, "lsb2msb");
2756       tmp___14 = tmp___13;   2756       tmp___14 = tmp___13;
2757     }   2757     }
2758     if (tmp___14 == 0) {   2758     if (tmp___14 == 0) {
2759       deffillorder = (uint16 )2;   2759       deffillorder = (uint16 )2;
2760     } else {   2760     } else {
2761       if (0) {   2761       if (0) {
2762         __s1_len = strlen((char const   *)optarg);   2762         __s1_len = strlen((char const   *)optarg);
2763         __s2_len = strlen("msb2lsb");   2763         __s2_len = strlen("msb2lsb");
2764         if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {   2764         if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {
2765           goto _L___0;   2765           goto _L___0;
2766         } else   2766         } else
2767         if (__s1_len >= 4U) {   2767         if (__s1_len >= 4U) {
2768           _L___0: /* CIL Label */   2768           _L___0: /* CIL Label */
2769           if (! ((size_t )((void const   *)("msb2lsb" + 1)) - (size_t )((void const   *)"msb2lsb") == 1U)) {   2769           if (! ((size_t )((void const   *)("msb2lsb" + 1)) - (size_t )((void const   *)"msb2lsb") == 1U)) {
2770             tmp___8 = 1;   2770             tmp___8 = 1;
2771           } else   2771           } else
2772           if (__s2_len >= 4U) {   2772           if (__s2_len >= 4U) {
2773             tmp___8 = 1;   2773             tmp___8 = 1;
2774           } else {   2774           } else {
2775             tmp___8 = 0;   2775             tmp___8 = 0;
2776           }   2776           }
2777         } else {   2777         } else {
2778           tmp___8 = 0;   2778           tmp___8 = 0;
2779         }   2779         }
2780         if (tmp___8) {   2780         if (tmp___8) {
2781           tmp___3 = __builtin_strcmp((char const   *)optarg, "msb2lsb");   2781           tmp___3 = __builtin_strcmp((char const   *)optarg, "msb2lsb");
2782           tmp___7 = tmp___3;   2782           tmp___7 = tmp___3;
2783         } else {   2783         } else {
2784           tmp___6 = __builtin_strcmp((char const   *)optarg, "msb2lsb");   2784           tmp___6 = __builtin_strcmp((char const   *)optarg, "msb2lsb");
2785           tmp___7 = tmp___6;   2785           tmp___7 = tmp___6;
2786         }   2786         }
2787       } else {   2787       } else {
2788         tmp___6 = __builtin_strcmp((char const   *)optarg, "msb2lsb");   2788         tmp___6 = __builtin_strcmp((char const   *)optarg, "msb2lsb");
2789         tmp___7 = tmp___6;   2789         tmp___7 = tmp___6;
2790       }   2790       }
2791       if (tmp___7 == 0) {   2791       if (tmp___7 == 0) {
2792         deffillorder = (uint16 )1;   2792         deffillorder = (uint16 )1;
2793       } else {   2793       } else {
2794         usage();   2794         usage();
2795       }   2795       }
2796     }   2796     }
2797     break;   2797     break;
2798     case 105:   2798     case 105:
2799     ignore = 1;   2799     ignore = 1;
2800     break;   2800     break;
2801     case 108:   2801     case 108:
2802     outtiled = 1;   2802     outtiled = 1;
2803     tmp___16 = atoi((char const   *)optarg);   2803     tmp___16 = atoi((char const   *)optarg);
2804     deftilelength = (uint32 )tmp___16;   2804     deftilelength = (uint32 )tmp___16;
2805     break;   2805     break;
2806     case 111:   2806     case 111:
2807     tmp___17 = strtoul((char const   */* __restrict  */)optarg,   2807     tmp___17 = strtoul((char const   */* __restrict  */)optarg,
2808                        (char **/* __restrict  */)((void *)0), 0);   2808                        (char **/* __restrict  */)((void *)0), 0);
2809     diroff = (uint64 )tmp___17;   2809     diroff = (uint64 )tmp___17;
2810     break;   2810     break;
2811     case 112:   2811     case 112:
2812     if (0) {   2812     if (0) {
2813       __s1_len___2 = strlen((char const   *)optarg);   2813       __s1_len___2 = strlen((char const   *)optarg);
2814       __s2_len___2 = strlen("separate");   2814       __s2_len___2 = strlen("separate");
2815       if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {   2815       if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {
2816         goto _L___6;   2816         goto _L___6;
2817       } else   2817       } else
2818       if (__s1_len___2 >= 4U) {   2818       if (__s1_len___2 >= 4U) {
2819         _L___6: /* CIL Label */   2819         _L___6: /* CIL Label */
2820         if (! ((size_t )((void const   *)("separate" + 1)) - (size_t )((void const   *)"separate") == 1U)) {   2820         if (! ((size_t )((void const   *)("separate" + 1)) - (size_t )((void const   *)"separate") == 1U)) {
2821           tmp___31 = 1;   2821           tmp___31 = 1;
2822         } else   2822         } else
2823         if (__s2_len___2 >= 4U) {   2823         if (__s2_len___2 >= 4U) {
2824           tmp___31 = 1;   2824           tmp___31 = 1;
2825         } else {   2825         } else {
2826           tmp___31 = 0;   2826           tmp___31 = 0;
2827         }   2827         }
2828       } else {   2828       } else {
2829         tmp___31 = 0;   2829         tmp___31 = 0;
2830       }   2830       }
2831       if (tmp___31) {   2831       if (tmp___31) {
2832         tmp___26 = __builtin_strcmp((char const   *)optarg, "separate");   2832         tmp___26 = __builtin_strcmp((char const   *)optarg, "separate");
2833         tmp___30 = tmp___26;   2833         tmp___30 = tmp___26;
2834       } else {   2834       } else {
2835         tmp___29 = __builtin_strcmp((char const   *)optarg, "separate");   2835         tmp___29 = __builtin_strcmp((char const   *)optarg, "separate");
2836         tmp___30 = tmp___29;   2836         tmp___30 = tmp___29;
2837       }   2837       }
2838     } else {   2838     } else {
2839       tmp___29 = __builtin_strcmp((char const   *)optarg, "separate");   2839       tmp___29 = __builtin_strcmp((char const   *)optarg, "separate");
2840       tmp___30 = tmp___29;   2840       tmp___30 = tmp___29;
2841     }   2841     }
2842     if (tmp___30 == 0) {   2842     if (tmp___30 == 0) {
2843       defconfig = (uint16 )2;   2843       defconfig = (uint16 )2;
2844     } else {   2844     } else {
2845       if (0) {   2845       if (0) {
2846         __s1_len___1 = strlen((char const   *)optarg);   2846         __s1_len___1 = strlen((char const   *)optarg);
2847         __s2_len___1 = strlen("contig");   2847         __s2_len___1 = strlen("contig");
2848         if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {   2848         if (! ((size_t )((void const   *)(optarg + 1)) - (size_t )((void const   *)optarg) == 1U)) {
2849           goto _L___4;   2849           goto _L___4;
2850         } else   2850         } else
2851         if (__s1_len___1 >= 4U) {   2851         if (__s1_len___1 >= 4U) {
2852           _L___4: /* CIL Label */   2852           _L___4: /* CIL Label */
2853           if (! ((size_t )((void const   *)("contig" + 1)) - (size_t )((void const   *)"contig") == 1U)) {   2853           if (! ((size_t )((void const   *)("contig" + 1)) - (size_t )((void const   *)"contig") == 1U)) {
2854             tmp___24 = 1;   2854             tmp___24 = 1;
2855           } else   2855           } else
2856           if (__s2_len___1 >= 4U) {   2856           if (__s2_len___1 >= 4U) {
2857             tmp___24 = 1;   2857             tmp___24 = 1;
2858           } else {   2858           } else {
2859             tmp___24 = 0;   2859             tmp___24 = 0;
2860           }   2860           }
2861         } else {   2861         } else {
2862           tmp___24 = 0;   2862           tmp___24 = 0;
2863         }   2863         }
2864         if (tmp___24) {   2864         if (tmp___24) {
2865           tmp___19 = __builtin_strcmp((char const   *)optarg, "contig");   2865           tmp___19 = __builtin_strcmp((char const   *)optarg, "contig");
2866           tmp___23 = tmp___19;   2866           tmp___23 = tmp___19;
2867         } else {   2867         } else {
2868           tmp___22 = __builtin_strcmp((char const   *)optarg, "contig");   2868           tmp___22 = __builtin_strcmp((char const   *)optarg, "contig");
2869           tmp___23 = tmp___22;   2869           tmp___23 = tmp___22;
2870         }   2870         }
2871       } else {   2871       } else {
2872         tmp___22 = __builtin_strcmp((char const   *)optarg, "contig");   2872         tmp___22 = __builtin_strcmp((char const   *)optarg, "contig");
2873         tmp___23 = tmp___22;   2873         tmp___23 = tmp___22;
2874       }   2874       }
2875       if (tmp___23 == 0) {   2875       if (tmp___23 == 0) {
2876         defconfig = (uint16 )1;   2876         defconfig = (uint16 )1;
2877       } else {   2877       } else {
2878         usage();   2878         usage();
2879       }   2879       }
2880     }   2880     }
2881     break;   2881     break;
2882     case 114:   2882     case 114:
2883     tmp___32 = atol((char const   *)optarg);   2883     tmp___32 = atol((char const   *)optarg);
2884     defrowsperstrip = (uint32 )tmp___32;   2884     defrowsperstrip = (uint32 )tmp___32;
2885     break;   2885     break;
2886     case 115:   2886     case 115:
2887     outtiled = 0;   2887     outtiled = 0;
2888     break;   2888     break;
2889     case 116:   2889     case 116:
2890     outtiled = 1;   2890     outtiled = 1;
2891     break;   2891     break;
2892     case 119:   2892     case 119:
2893     outtiled = 1;   2893     outtiled = 1;
2894     tmp___33 = atoi((char const   *)optarg);   2894     tmp___33 = atoi((char const   *)optarg);
2895     deftilewidth = (uint32 )tmp___33;   2895     deftilewidth = (uint32 )tmp___33;
2896     break;   2896     break;
2897     case 66:   2897     case 66:
2898     tmp___34 = mp;   2898     tmp___34 = mp;
2899     mp ++;   2899     mp ++;
2900     *tmp___34 = (char )'b';   2900     *tmp___34 = (char )'b';
2901     *mp = (char )'\000';   2901     *mp = (char )'\000';
2902     break;   2902     break;
2903     case 76:   2903     case 76:
2904     tmp___35 = mp;   2904     tmp___35 = mp;
2905     mp ++;   2905     mp ++;
2906     *tmp___35 = (char )'l';   2906     *tmp___35 = (char )'l';
2907     *mp = (char )'\000';   2907     *mp = (char )'\000';
2908     break;   2908     break;
2909     case 77:   2909     case 77:
2910     tmp___36 = mp;   2910     tmp___36 = mp;
2911     mp ++;   2911     mp ++;
2912     *tmp___36 = (char )'m';   2912     *tmp___36 = (char )'m';
2913     *mp = (char )'\000';   2913     *mp = (char )'\000';
2914     break;   2914     break;
2915     case 67:   2915     case 67:
2916     tmp___37 = mp;   2916     tmp___37 = mp;
2917     mp ++;   2917     mp ++;
2918     *tmp___37 = (char )'c';   2918     *tmp___37 = (char )'c';
2919     *mp = (char )'\000';   2919     *mp = (char )'\000';
2920     break;   2920     break;
2921     case 56:   2921     case 56:
2922     tmp___38 = mp;   2922     tmp___38 = mp;
2923     mp ++;   2923     mp ++;
2924     *tmp___38 = (char )'8';   2924     *tmp___38 = (char )'8';
2925     *mp = (char )'\000';   2925     *mp = (char )'\000';
2926     break;   2926     break;
2927     case 63:   2927     case 63:
2928     usage();   2928     usage();
2929     }   2929     }
2930   }   2930   }
2931   if (argc - optind < 2) {   2931   if (argc - optind < 2) {
2932     usage();   2932     usage();
2933   } else {   2933   } else {
2934     2934  
2935   }   2935   }
2936   out = TIFFOpen((char const   *)*(argv + (argc - 1)), (char const   *)(mode));   2936   out = TIFFOpen((char const   *)*(argv + (argc - 1)), (char const   *)(mode));
2937   if ((unsigned int )out == (unsigned int )((void *)0)) {   2937   if ((unsigned int )out == (unsigned int )((void *)0)) {
2938     return (-2);   2938     return (-2);
2939   } else {   2939   } else {
2940     2940  
2941   }   2941   }
2942   if (argc - optind == 2) {   2942   if (argc - optind == 2) {
2943     pageNum = -1;   2943     pageNum = -1;
2944   } else {   2944   } else {
2945     2945  
2946   }   2946   }
2947   while (optind < argc - 1) {   2947   while (optind < argc - 1) {
2948     imageCursor = *(argv + optind);   2948     imageCursor = *(argv + optind);
2949     in = openSrcImage(& imageCursor);   2949     in = openSrcImage(& imageCursor);
2950     if ((unsigned int )in == (unsigned int )((void *)0)) {   2950     if ((unsigned int )in == (unsigned int )((void *)0)) {
2951       return (-3);   2951       return (-3);
2952     } else {   2952     } else {
2953     2953  
2954     }   2954     }
2955     if (diroff != 0ULL) {   2955     if (diroff != 0ULL) {
2956       tmp___40 = TIFFSetSubDirectory(in, diroff);   2956       tmp___40 = TIFFSetSubDirectory(in, diroff);
2957       if (tmp___40) {   2957       if (tmp___40) {
2958     2958  
2959       } else {   2959       } else {
2960         tmp___39 = TIFFFileName(in);   2960         tmp___39 = TIFFFileName(in);
2961         TIFFError(tmp___39, "Error, setting subdirectory at %llu", diroff);   2961         TIFFError(tmp___39, "Error, setting subdirectory at %llu", diroff);
2962         TIFFClose(out);   2962         TIFFClose(out);
2963         return (1);   2963         return (1);
2964       }   2964       }
2965     } else {   2965     } else {
2966     2966  
2967     }   2967     }
2968     while (1) {   2968     while (1) {
2969       config = defconfig;   2969       config = defconfig;
2970       compression = defcompression;   2970       compression = defcompression;
2971       predictor = defpredictor;   2971       predictor = defpredictor;
2972       fillorder = deffillorder;   2972       fillorder = deffillorder;
2973       rowsperstrip = defrowsperstrip;   2973       rowsperstrip = defrowsperstrip;
2974       tilewidth = deftilewidth;   2974       tilewidth = deftilewidth;
2975       tilelength = deftilelength;   2975       tilelength = deftilelength;
2976       g3opts = defg3opts;   2976       g3opts = defg3opts;
2977       tmp___41 = tiffcp(in, out);   2977       tmp___41 = tiffcp(in, out);
2978       if (tmp___41) {   2978       if (tmp___41) {
2979         tmp___42 = TIFFWriteDirectory(out);   2979         tmp___42 = TIFFWriteDirectory(out);
2980         if (tmp___42) {   2980         if (tmp___42) {
2981     2981  
2982         } else {   2982         } else {
2983           TIFFClose(out);   2983           TIFFClose(out);
2984           return (1);   2984           return (1);
2985         }   2985         }
2986       } else {   2986       } else {
2987         TIFFClose(out);   2987         TIFFClose(out);
2988         return (1);   2988         return (1);
2989       }   2989       }
2990       if (imageCursor) {   2990       if (imageCursor) {
2991         tmp___43 = nextSrcImage(in, & imageCursor);   2991         tmp___43 = nextSrcImage(in, & imageCursor);
2992         if (tmp___43) {   2992         if (tmp___43) {
2993     2993  
2994         } else {   2994         } else {
2995           break;   2995           break;
2996         }   2996         }
2997       } else {   2997       } else {
2998         tmp___44 = TIFFReadDirectory(in);   2998         tmp___44 = TIFFReadDirectory(in);
2999         if (tmp___44) {   2999         if (tmp___44) {
3000     3000  
3001         } else {   3001         } else {
3002           break;   3002           break;
3003         }   3003         }
3004       }   3004       }
3005     }   3005     }
3006     TIFFClose(in);   3006     TIFFClose(in);
3007     optind ++;   3007     optind ++;
3008   }   3008   }
3009   TIFFClose(out);   3009   TIFFClose(out);
3010   return (0);   3010   return (0);
3011 }   3011 }
3012 }   3012 }
3013 static void processG3Options(char *cp )   3013 static void processG3Options(char *cp )
3014 {   3014 {
3015   size_t tmp ;   3015   size_t tmp ;
3016   size_t tmp___0 ;   3016   size_t tmp___0 ;
3017   size_t __s1_len ;   3017   size_t __s1_len ;
3018   size_t __s2_len ;   3018   size_t __s2_len ;
3019   int tmp___1 ;   3019   int tmp___1 ;
3020   int tmp___2 ;   3020   int tmp___2 ;
3021   int tmp___3 ;   3021   int tmp___3 ;
3022   unsigned char const   *__s2 ;   3022   unsigned char const   *__s2 ;
3023   register int __result ;   3023   register int __result ;
3024   int tmp___4 ;   3024   int tmp___4 ;
3025   unsigned char const   *__s1 ;   3025   unsigned char const   *__s1 ;
3026   register int __result___0 ;   3026   register int __result___0 ;
3027   int tmp___5 ;   3027   int tmp___5 ;
3028   int tmp___6 ;   3028   int tmp___6 ;
3029   int tmp___7 ;   3029   int tmp___7 ;
3030   int tmp___8 ;   3030   int tmp___8 ;
3031   int tmp___9 ;   3031   int tmp___9 ;
3032   size_t tmp___10 ;   3032   size_t tmp___10 ;
3033   size_t tmp___11 ;   3033   size_t tmp___11 ;
3034   size_t tmp___12 ;   3034   size_t tmp___12 ;
3035   size_t tmp___13 ;   3035   size_t tmp___13 ;
3036   size_t __s1_len___0 ;   3036   size_t __s1_len___0 ;
3037   size_t __s2_len___0 ;   3037   size_t __s2_len___0 ;
3038   int tmp___14 ;   3038   int tmp___14 ;
3039   int tmp___15 ;   3039   int tmp___15 ;
3040   int tmp___16 ;   3040   int tmp___16 ;
3041   unsigned char const   *__s2___0 ;   3041   unsigned char const   *__s2___0 ;
3042   register int __result___1 ;   3042   register int __result___1 ;
3043   int tmp___17 ;   3043   int tmp___17 ;
3044   unsigned char const   *__s1___0 ;   3044   unsigned char const   *__s1___0 ;
3045   register int __result___2 ;   3045   register int __result___2 ;
3046   int tmp___18 ;   3046   int tmp___18 ;
3047   int tmp___19 ;   3047   int tmp___19 ;
3048   int tmp___20 ;   3048   int tmp___20 ;
3049   int tmp___21 ;   3049   int tmp___21 ;
3050   int tmp___22 ;   3050   int tmp___22 ;
3051   size_t tmp___23 ;   3051   size_t tmp___23 ;
3052   size_t tmp___24 ;   3052   size_t tmp___24 ;
3053   size_t tmp___25 ;   3053   size_t tmp___25 ;
3054   size_t tmp___26 ;   3054   size_t tmp___26 ;
3055   size_t __s1_len___1 ;   3055   size_t __s1_len___1 ;
3056   size_t __s2_len___1 ;   3056   size_t __s2_len___1 ;
3057   int tmp___27 ;   3057   int tmp___27 ;
3058   int tmp___28 ;   3058   int tmp___28 ;
3059   int tmp___29 ;   3059   int tmp___29 ;
3060   unsigned char const   *__s2___1 ;   3060   unsigned char const   *__s2___1 ;
3061   register int __result___3 ;   3061   register int __result___3 ;
3062   int tmp___30 ;   3062   int tmp___30 ;
3063   unsigned char const   *__s1___1 ;   3063   unsigned char const   *__s1___1 ;
3064   register int __result___4 ;   3064   register int __result___4 ;
3065   int tmp___31 ;   3065   int tmp___31 ;
3066   int tmp___32 ;   3066   int tmp___32 ;
3067   int tmp___33 ;   3067   int tmp___33 ;
3068   int tmp___34 ;   3068   int tmp___34 ;
3069   int tmp___35 ;   3069   int tmp___35 ;
3070   size_t tmp___36 ;   3070   size_t tmp___36 ;
3071   size_t tmp___37 ;   3071   size_t tmp___37 ;
3072   void *tmp___38 ;   3072   void *tmp___38 ;
3073   char *tmp___39 ;   3073   char *tmp___39 ;
3074   void *tmp___40 ;   3074   void *tmp___40 ;
3075   char *tmp___41 ;   3075   char *tmp___41 ;
3076     3076  
3077   {   3077   {
3078   tmp___41 = __builtin_strchr(cp, ':');   3078   tmp___41 = __builtin_strchr(cp, ':');
3079   cp = tmp___41;   3079   cp = tmp___41;
3080   if (cp) {   3080   if (cp) {
3081     if (defg3opts == 4294967295U) {   3081     if (defg3opts == 4294967295U) {
3082       defg3opts = (uint32 )0;   3082       defg3opts = (uint32 )0;
3083     } else {   3083     } else {
3084     3084  
3085     }   3085     }
3086     while (1) {   3086     while (1) {
3087       cp ++;   3087       cp ++;
3088       if (0) {   3088       if (0) {
3089         if (0) {   3089         if (0) {
3090           __s1_len___1 = strlen((char const   *)cp);   3090           __s1_len___1 = strlen((char const   *)cp);
3091           __s2_len___1 = strlen("1d");   3091           __s2_len___1 = strlen("1d");
3092           if (! ((size_t )((void const   *)(cp + 1)) - (size_t )((void const   *)cp) == 1U)) {   3092           if (! ((size_t )((void const   *)(cp + 1)) - (size_t )((void const   *)cp) == 1U)) {
3093             goto _L___4;   3093             goto _L___4;
3094           } else   3094           } else
3095           if (__s1_len___1 >= 4U) {   3095           if (__s1_len___1 >= 4U) {
3096             _L___4: /* CIL Label */   3096             _L___4: /* CIL Label */
3097             if (! ((size_t )((void const   *)("1d" + 1)) - (size_t )((void const   *)"1d") == 1U)) {   3097             if (! ((size_t )((void const   *)("1d" + 1)) - (size_t )((void const   *)"1d") == 1U)) {
3098               tmp___33 = 1;   3098               tmp___33 = 1;
3099             } else   3099             } else
3100             if (__s2_len___1 >= 4U) {   3100             if (__s2_len___1 >= 4U) {
3101               tmp___33 = 1;   3101               tmp___33 = 1;
3102             } else {   3102             } else {
3103               tmp___33 = 0;   3103               tmp___33 = 0;
3104             }   3104             }
3105           } else {   3105           } else {
3106             tmp___33 = 0;   3106             tmp___33 = 0;
3107           }   3107           }
3108           if (tmp___33) {   3108           if (tmp___33) {
3109             tmp___28 = __builtin_strcmp((char const   *)cp, "1d");   3109             tmp___28 = __builtin_strcmp((char const   *)cp, "1d");
3110             tmp___32 = tmp___28;   3110             tmp___32 = tmp___28;
3111           } else {   3111           } else {
3112             tmp___31 = __builtin_strcmp((char const   *)cp, "1d");   3112             tmp___31 = __builtin_strcmp((char const   *)cp, "1d");
3113             tmp___32 = tmp___31;   3113             tmp___32 = tmp___31;
3114           }   3114           }
3115         } else {   3115         } else {
3116           tmp___31 = __builtin_strcmp((char const   *)cp, "1d");   3116           tmp___31 = __builtin_strcmp((char const   *)cp, "1d");
3117           tmp___32 = tmp___31;   3117           tmp___32 = tmp___31;
3118         }   3118         }
3119         tmp___35 = tmp___32;   3119         tmp___35 = tmp___32;
3120       } else {   3120       } else {
3121         tmp___34 = strncmp((char const   *)cp, "1d", (size_t )2);   3121         tmp___34 = strncmp((char const   *)cp, "1d", (size_t )2);
3122         tmp___35 = tmp___34;   3122         tmp___35 = tmp___34;
3123       }   3123       }
3124       if (tmp___35 == 0) {   3124       if (tmp___35 == 0) {
3125         defg3opts &= 4294967294U;   3125         defg3opts &= 4294967294U;
3126       } else {   3126       } else {
3127         if (0) {   3127         if (0) {
3128           if (0) {   3128           if (0) {
3129             __s1_len___0 = strlen((char const   *)cp);   3129             __s1_len___0 = strlen((char const   *)cp);
3130             __s2_len___0 = strlen("2d");   3130             __s2_len___0 = strlen("2d");
3131             if (! ((size_t )((void const   *)(cp + 1)) - (size_t )((void const   *)cp) == 1U)) {   3131             if (! ((size_t )((void const   *)(cp + 1)) - (size_t )((void const   *)cp) == 1U)) {
3132               goto _L___2;   3132               goto _L___2;
3133             } else   3133             } else
3134             if (__s1_len___0 >= 4U) {   3134             if (__s1_len___0 >= 4U) {
3135               _L___2: /* CIL Label */   3135               _L___2: /* CIL Label */
3136               if (! ((size_t )((void const   *)("2d" + 1)) - (size_t )((void const   *)"2d") == 1U)) {   3136               if (! ((size_t )((void const   *)("2d" + 1)) - (size_t )((void const   *)"2d") == 1U)) {
3137                 tmp___20 = 1;   3137                 tmp___20 = 1;
3138               } else   3138               } else
3139               if (__s2_len___0 >= 4U) {   3139               if (__s2_len___0 >= 4U) {
3140                 tmp___20 = 1;   3140                 tmp___20 = 1;
3141               } else {   3141               } else {
3142                 tmp___20 = 0;   3142                 tmp___20 = 0;
3143               }   3143               }
3144             } else {   3144             } else {
3145               tmp___20 = 0;   3145               tmp___20 = 0;
3146             }   3146             }
3147             if (tmp___20) {   3147             if (tmp___20) {
3148               tmp___15 = __builtin_strcmp((char const   *)cp, "2d");   3148               tmp___15 = __builtin_strcmp((char const   *)cp, "2d");
3149               tmp___19 = tmp___15;   3149               tmp___19 = tmp___15;
3150             } else {   3150             } else {
3151               tmp___18 = __builtin_strcmp((char const   *)cp, "2d");   3151               tmp___18 = __builtin_strcmp((char const   *)cp, "2d");
3152               tmp___19 = tmp___18;   3152               tmp___19 = tmp___18;
3153             }   3153             }
3154           } else {   3154           } else {
3155             tmp___18 = __builtin_strcmp((char const   *)cp, "2d");   3155             tmp___18 = __builtin_strcmp((char const   *)cp, "2d");
3156             tmp___19 = tmp___18;   3156             tmp___19 = tmp___18;
3157           }   3157           }
3158           tmp___22 = tmp___19;   3158           tmp___22 = tmp___19;
3159         } else {   3159         } else {
3160           tmp___21 = strncmp((char const   *)cp, "2d", (size_t )2);   3160           tmp___21 = strncmp((char const   *)cp, "2d", (size_t )2);
3161           tmp___22 = tmp___21;   3161           tmp___22 = tmp___21;
3162         }   3162         }
3163         if (tmp___22 == 0) {   3163         if (tmp___22 == 0) {
3164           defg3opts |= 1U;   3164           defg3opts |= 1U;
3165         } else {   3165         } else {
3166           if (0) {   3166           if (0) {
3167             if (0) {   3167             if (0) {
3168               __s1_len = strlen((char const   *)cp);   3168               __s1_len = strlen((char const   *)cp);
3169               __s2_len = strlen("fill");   3169               __s2_len = strlen("fill");
3170               if (! ((size_t )((void const   *)(cp + 1)) - (size_t )((void const   *)cp) == 1U)) {   3170               if (! ((size_t )((void const   *)(cp + 1)) - (size_t )((void const   *)cp) == 1U)) {
3171                 goto _L___0;   3171                 goto _L___0;
3172               } else   3172               } else
3173               if (__s1_len >= 4U) {   3173               if (__s1_len >= 4U) {
3174                 _L___0: /* CIL Label */   3174                 _L___0: /* CIL Label */
3175                 if (! ((size_t )((void const   *)("fill" + 1)) - (size_t )((void const   *)"fill") == 1U)) {   3175                 if (! ((size_t )((void const   *)("fill" + 1)) - (size_t )((void const   *)"fill") == 1U)) {
3176                   tmp___7 = 1;   3176                   tmp___7 = 1;
3177                 } else   3177                 } else
3178                 if (__s2_len >= 4U) {   3178                 if (__s2_len >= 4U) {
3179                   tmp___7 = 1;   3179                   tmp___7 = 1;
3180                 } else {   3180                 } else {
3181                   tmp___7 = 0;   3181                   tmp___7 = 0;
3182                 }   3182                 }
3183               } else {   3183               } else {
3184                 tmp___7 = 0;   3184                 tmp___7 = 0;
3185               }   3185               }
3186               if (tmp___7) {   3186               if (tmp___7) {
3187                 tmp___2 = __builtin_strcmp((char const   *)cp, "fill");   3187                 tmp___2 = __builtin_strcmp((char const   *)cp, "fill");
3188                 tmp___6 = tmp___2;   3188                 tmp___6 = tmp___2;
3189               } else {   3189               } else {
3190                 tmp___5 = __builtin_strcmp((char const   *)cp, "fill");   3190                 tmp___5 = __builtin_strcmp((char const   *)cp, "fill");
3191                 tmp___6 = tmp___5;   3191                 tmp___6 = tmp___5;
3192               }   3192               }
3193             } else {   3193             } else {
3194               tmp___5 = __builtin_strcmp((char const   *)cp, "fill");   3194               tmp___5 = __builtin_strcmp((char const   *)cp, "fill");
3195               tmp___6 = tmp___5;   3195               tmp___6 = tmp___5;
3196             }   3196             }
3197             tmp___9 = tmp___6;   3197             tmp___9 = tmp___6;
3198           } else {   3198           } else {
3199             tmp___8 = strncmp((char const   *)cp, "fill", (size_t )4);   3199             tmp___8 = strncmp((char const   *)cp, "fill", (size_t )4);
3200             tmp___9 = tmp___8;   3200             tmp___9 = tmp___8;
3201           }   3201           }
3202           if (tmp___9 == 0) {   3202           if (tmp___9 == 0) {
3203             defg3opts |= 4U;   3203             defg3opts |= 4U;
3204           } else {   3204           } else {
3205             usage();   3205             usage();
3206           }   3206           }
3207         }   3207         }
3208       }   3208       }
3209       tmp___39 = __builtin_strchr(cp, ':');   3209       tmp___39 = __builtin_strchr(cp, ':');
3210       cp = tmp___39;   3210       cp = tmp___39;
3211       if (cp) {   3211       if (cp) {
3212     3212  
3213       } else {   3213       } else {
3214         break;   3214         break;
3215       }   3215       }
3216     }   3216     }
3217   } else {   3217   } else {
3218     3218  
3219   }   3219   }
3220   return;   3220   return;
3221 }   3221 }
3222 }   3222 }
3223 static int processCompressOptions(char *opt )   3223 static int processCompressOptions(char *opt )
3224 {   3224 {
3225   char *cp ;   3225   char *cp ;
3226   void *tmp ;   3226   void *tmp ;
3227   char *tmp___0 ;   3227   char *tmp___0 ;
3228   unsigned short const   **tmp___1 ;   3228   unsigned short const   **tmp___1 ;
3229   void *tmp___2 ;   3229   void *tmp___2 ;
3230   char *tmp___3 ;   3230   char *tmp___3 ;
3231   char *cp___0 ;   3231   char *cp___0 ;
3232   void *tmp___4 ;   3232   void *tmp___4 ;
3233   char *tmp___5 ;   3233   char *tmp___5 ;
3234   int tmp___6 ;   3234   int tmp___6 ;
3235   char *cp___1 ;   3235   char *cp___1 ;
3236   void *tmp___7 ;   3236   void *tmp___7 ;
3237   char *tmp___8 ;   3237   char *tmp___8 ;
3238   int tmp___9 ;   3238   int tmp___9 ;
3239   size_t tmp___10 ;   3239   size_t tmp___10 ;
3240   size_t tmp___11 ;   3240   size_t tmp___11 ;
3241   size_t __s1_len ;   3241   size_t __s1_len ;
3242   size_t __s2_len ;   3242   size_t __s2_len ;
3243   int tmp___12 ;   3243   int tmp___12 ;
3244   int tmp___13 ;   3244   int tmp___13 ;
3245   int tmp___14 ;   3245   int tmp___14 ;
3246   unsigned char const   *__s2 ;   3246   unsigned char const   *__s2 ;
3247   register int __result ;   3247   register int __result ;
3248   int tmp___15 ;   3248   int tmp___15 ;
3249   unsigned char const   *__s1 ;   3249   unsigned char const   *__s1 ;
3250   register int __result___0 ;   3250   register int __result___0 ;
3251   int tmp___16 ;   3251   int tmp___16 ;
3252   int tmp___17 ;   3252   int tmp___17 ;
3253   int tmp___18 ;   3253   int tmp___18 ;
3254   int tmp___19 ;   3254   int tmp___19 ;
3255   int tmp___20 ;   3255   int tmp___20 ;
3256   size_t tmp___21 ;   3256   size_t tmp___21 ;
3257   size_t tmp___22 ;   3257   size_t tmp___22 ;
3258   size_t tmp___23 ;   3258   size_t tmp___23 ;
3259   size_t tmp___24 ;   3259   size_t tmp___24 ;
3260   size_t __s1_len___0 ;   3260   size_t __s1_len___0 ;
3261   size_t __s2_len___0 ;   3261   size_t __s2_len___0 ;
3262   int tmp___25 ;   3262   int tmp___25 ;
3263   int tmp___26 ;   3263   int tmp___26 ;
3264   int tmp___27 ;   3264   int tmp___27 ;
3265   unsigned char const   *__s2___0 ;   3265   unsigned char const   *__s2___0 ;
3266   register int __result___1 ;   3266   register int __result___1 ;
3267   int tmp___28 ;   3267   int tmp___28 ;
3268   unsigned char const   *__s1___0 ;   3268   unsigned char const   *__s1___0 ;
3269   register int __result___2 ;   3269   register int __result___2 ;
3270   int tmp___29 ;   3270   int tmp___29 ;
3271   int tmp___30 ;   3271   int tmp___30 ;
3272   int tmp___31 ;   3272   int tmp___31 ;
3273   int tmp___32 ;   3273   int tmp___32 ;
3274   int tmp___33 ;   3274   int tmp___33 ;
3275   size_t tmp___34 ;   3275   size_t tmp___34 ;
3276   size_t tmp___35 ;   3276   size_t tmp___35 ;
3277   size_t tmp___36 ;   3277   size_t tmp___36 ;
3278   size_t tmp___37 ;   3278   size_t tmp___37 ;
3279   size_t __s1_len___1 ;   3279   size_t __s1_len___1 ;
3280   size_t __s2_len___1 ;   3280   size_t __s2_len___1 ;
3281   int tmp___38 ;   3281   int tmp___38 ;
3282   int tmp___39 ;   3282   int tmp___39 ;
3283   int tmp___40 ;   3283   int tmp___40 ;
3284   unsigned char const   *__s2___1 ;   3284   unsigned char const   *__s2___1 ;
3285   register int __result___3 ;   3285   register int __result___3 ;
3286   int tmp___41 ;   3286   int tmp___41 ;
3287   unsigned char const   *__s1___1 ;   3287   unsigned char const   *__s1___1 ;
3288   register int __result___4 ;   3288   register int __result___4 ;
3289   int tmp___42 ;   3289   int tmp___42 ;
3290   int tmp___43 ;   3290   int tmp___43 ;
3291   int tmp___44 ;   3291   int tmp___44 ;
3292   int tmp___45 ;   3292   int tmp___45 ;
3293   int tmp___46 ;   3293   int tmp___46 ;
3294   size_t tmp___47 ;   3294   size_t tmp___47 ;
3295   size_t tmp___48 ;   3295   size_t tmp___48 ;
3296   size_t __s1_len___2 ;   3296   size_t __s1_len___2 ;
3297   size_t __s2_len___2 ;   3297   size_t __s2_len___2 ;
3298   int tmp___49 ;   3298   int tmp___49 ;
3299   int tmp___50 ;   3299   int tmp___50 ;
3300   int tmp___51 ;   3300   int tmp___51 ;
3301   unsigned char const   *__s2___2 ;   3301   unsigned char const   *__s2___2 ;
3302   register int __result___5 ;   3302   register int __result___5 ;
3303   int tmp___52 ;   3303   int tmp___52 ;
3304   unsigned char const   *__s1___2 ;   3304   unsigned char const   *__s1___2 ;
3305   register int __result___6 ;   3305   register int __result___6 ;
3306   int tmp___53 ;   3306   int tmp___53 ;
3307   int tmp___54 ;   3307   int tmp___54 ;
3308   int tmp___55 ;   3308   int tmp___55 ;
3309   size_t tmp___56 ;   3309   size_t tmp___56 ;
3310   size_t tmp___57 ;   3310   size_t tmp___57 ;
3311   size_t __s1_len___3 ;   3311   size_t __s1_len___3 ;
3312   size_t __s2_len___3 ;   3312   size_t __s2_len___3 ;
3313   int tmp___58 ;   3313   int tmp___58 ;
3314   int tmp___59 ;   3314   int tmp___59 ;
3315   int tmp___60 ;   3315   int tmp___60 ;
3316   unsigned char const   *__s2___3 ;   3316   unsigned char const   *__s2___3 ;
3317   register int __result___7 ;   3317   register int __result___7 ;
3318   int tmp___61 ;   3318   int tmp___61 ;
3319   unsigned char const   *__s1___3 ;   3319   unsigned char const   *__s1___3 ;
3320   register int __result___8 ;   3320   register int __result___8 ;
3321   int tmp___62 ;   3321   int tmp___62 ;
3322   int tmp___63 ;   3322   int tmp___63 ;
3323   int tmp___64 ;   3323   int tmp___64 ;
3324   int tmp___65 ;   3324   int tmp___65 ;
3325   int tmp___66 ;   3325   int tmp___66 ;
3326   size_t tmp___67 ;   3326   size_t tmp___67 ;
3327   size_t tmp___68 ;   3327   size_t tmp___68 ;
3328   size_t tmp___69 ;   3328   size_t tmp___69 ;
3329   size_t tmp___70 ;   3329   size_t tmp___70 ;
3330   size_t __s1_len___4 ;   3330   size_t __s1_len___4 ;
3331   size_t __s2_len___4 ;   3331   size_t __s2_len___4 ;
3332   int tmp___71 ;   3332   int tmp___71 ;
3333   int tmp___72 ;   3333   int tmp___72 ;
3334   int tmp___73 ;   3334   int tmp___73 ;
3335   unsigned char const   *__s2___4 ;   3335   unsigned char const   *__s2___4 ;
3336   register int __result___9 ;   3336   register int __result___9 ;
3337   int tmp___74 ;   3337   int tmp___74 ;
3338   unsigned char const   *__s1___4 ;   3338   unsigned char const   *__s1___4 ;
3339   register int __result___10 ;   3339   register int __result___10 ;
3340   int tmp___75 ;   3340   int tmp___75 ;
3341   int tmp___76 ;   3341   int tmp___76 ;
3342   int tmp___77 ;   3342   int tmp___77 ;
3343   int tmp___78 ;   3343   int tmp___78 ;
3344   int tmp___79 ;   3344   int tmp___79 ;
3345   size_t tmp___80 ;   3345   size_t tmp___80 ;
3346   size_t tmp___81 ;   3346   size_t tmp___81 ;
3347   size_t __s1_len___5 ;   3347   size_t __s1_len___5 ;
3348   size_t __s2_len___5 ;   3348   size_t __s2_len___5 ;
3349   int tmp___82 ;   3349   int tmp___82 ;
3350   int tmp___83 ;   3350   int tmp___83 ;
3351   int tmp___84 ;   3351   int tmp___84 ;
3352   unsigned char const   *__s2___5 ;   3352   unsigned char const   *__s2___5 ;
3353   register int __result___11 ;   3353   register int __result___11 ;
3354   int tmp___85 ;   3354   int tmp___85 ;
3355   unsigned char const   *__s1___5 ;   3355   unsigned char const   *__s1___5 ;
3356   register int __result___12 ;   3356   register int __result___12 ;
3357   int tmp___86 ;   3357   int tmp___86 ;
3358   int tmp___87 ;   3358   int tmp___87 ;
3359   int tmp___88 ;   3359   int tmp___88 ;
3360   size_t __s1_len___6 ;   3360   size_t __s1_len___6 ;
3361   size_t __s2_len___6 ;   3361   size_t __s2_len___6 ;
3362   int tmp___89 ;   3362   int tmp___89 ;
3363   int tmp___90 ;   3363   int tmp___90 ;
3364   int tmp___91 ;   3364   int tmp___91 ;
3365   unsigned char const   *__s2___6 ;   3365   unsigned char const   *__s2___6 ;
3366   register int __result___13 ;   3366   register int __result___13 ;
3367   int tmp___92 ;   3367   int tmp___92 ;
3368   unsigned char const   *__s1___6 ;   3368   unsigned char const   *__s1___6 ;
3369   register int __result___14 ;   3369   register int __result___14 ;
3370   int tmp___93 ;   3370   int tmp___93 ;
3371   int tmp___94 ;   3371   int tmp___94 ;
3372   int tmp___95 ;   3372   int tmp___95 ;
3373     3373  
3374   {   3374   {
3375   if (0) {   3375   if (0) {
3376     __s1_len___6 = strlen((char const   *)opt);   3376     __s1_len___6 = strlen((char const   *)opt);
3377     __s2_len___6 = strlen("none");   3377     __s2_len___6 = strlen("none");
3378     if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3378     if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3379       goto _L___14;   3379       goto _L___14;
3380     } else   3380     } else
3381     if (__s1_len___6 >= 4U) {   3381     if (__s1_len___6 >= 4U) {
3382       _L___14: /* CIL Label */   3382       _L___14: /* CIL Label */
3383       if (! ((size_t )((void const   *)("none" + 1)) - (size_t )((void const   *)"none") == 1U)) {   3383       if (! ((size_t )((void const   *)("none" + 1)) - (size_t )((void const   *)"none") == 1U)) {
3384         tmp___95 = 1;   3384         tmp___95 = 1;
3385       } else   3385       } else
3386       if (__s2_len___6 >= 4U) {   3386       if (__s2_len___6 >= 4U) {
3387         tmp___95 = 1;   3387         tmp___95 = 1;
3388       } else {   3388       } else {
3389         tmp___95 = 0;   3389         tmp___95 = 0;
3390       }   3390       }
3391     } else {   3391     } else {
3392       tmp___95 = 0;   3392       tmp___95 = 0;
3393     }   3393     }
3394     if (tmp___95) {   3394     if (tmp___95) {
3395       tmp___90 = __builtin_strcmp((char const   *)opt, "none");   3395       tmp___90 = __builtin_strcmp((char const   *)opt, "none");
3396       tmp___94 = tmp___90;   3396       tmp___94 = tmp___90;
3397     } else {   3397     } else {
3398       tmp___93 = __builtin_strcmp((char const   *)opt, "none");   3398       tmp___93 = __builtin_strcmp((char const   *)opt, "none");
3399       tmp___94 = tmp___93;   3399       tmp___94 = tmp___93;
3400     }   3400     }
3401   } else {   3401   } else {
3402     tmp___93 = __builtin_strcmp((char const   *)opt, "none");   3402     tmp___93 = __builtin_strcmp((char const   *)opt, "none");
3403     tmp___94 = tmp___93;   3403     tmp___94 = tmp___93;
3404   }   3404   }
3405   if (tmp___94 == 0) {   3405   if (tmp___94 == 0) {
3406     defcompression = (uint16 )1;   3406     defcompression = (uint16 )1;
3407   } else {   3407   } else {
3408     if (0) {   3408     if (0) {
3409       __s1_len___5 = strlen((char const   *)opt);   3409       __s1_len___5 = strlen((char const   *)opt);
3410       __s2_len___5 = strlen("packbits");   3410       __s2_len___5 = strlen("packbits");
3411       if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3411       if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3412         goto _L___12;   3412         goto _L___12;
3413       } else   3413       } else
3414       if (__s1_len___5 >= 4U) {   3414       if (__s1_len___5 >= 4U) {
3415         _L___12: /* CIL Label */   3415         _L___12: /* CIL Label */
3416         if (! ((size_t )((void const   *)("packbits" + 1)) - (size_t )((void const   *)"packbits") == 1U)) {   3416         if (! ((size_t )((void const   *)("packbits" + 1)) - (size_t )((void const   *)"packbits") == 1U)) {
3417           tmp___88 = 1;   3417           tmp___88 = 1;
3418         } else   3418         } else
3419         if (__s2_len___5 >= 4U) {   3419         if (__s2_len___5 >= 4U) {
3420           tmp___88 = 1;   3420           tmp___88 = 1;
3421         } else {   3421         } else {
3422           tmp___88 = 0;   3422           tmp___88 = 0;
3423         }   3423         }
3424       } else {   3424       } else {
3425         tmp___88 = 0;   3425         tmp___88 = 0;
3426       }   3426       }
3427       if (tmp___88) {   3427       if (tmp___88) {
3428         tmp___83 = __builtin_strcmp((char const   *)opt, "packbits");   3428         tmp___83 = __builtin_strcmp((char const   *)opt, "packbits");
3429         tmp___87 = tmp___83;   3429         tmp___87 = tmp___83;
3430       } else {   3430       } else {
3431         tmp___86 = __builtin_strcmp((char const   *)opt, "packbits");   3431         tmp___86 = __builtin_strcmp((char const   *)opt, "packbits");
3432         tmp___87 = tmp___86;   3432         tmp___87 = tmp___86;
3433       }   3433       }
3434     } else {   3434     } else {
3435       tmp___86 = __builtin_strcmp((char const   *)opt, "packbits");   3435       tmp___86 = __builtin_strcmp((char const   *)opt, "packbits");
3436       tmp___87 = tmp___86;   3436       tmp___87 = tmp___86;
3437     }   3437     }
3438     if (tmp___87 == 0) {   3438     if (tmp___87 == 0) {
3439       defcompression = (uint16 )32773;   3439       defcompression = (uint16 )32773;
3440     } else {   3440     } else {
3441       if (0) {   3441       if (0) {
3442         if (0) {   3442         if (0) {
3443           __s1_len___4 = strlen((char const   *)opt);   3443           __s1_len___4 = strlen((char const   *)opt);
3444           __s2_len___4 = strlen("jpeg");   3444           __s2_len___4 = strlen("jpeg");
3445           if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3445           if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3446             goto _L___10;   3446             goto _L___10;
3447           } else   3447           } else
3448           if (__s1_len___4 >= 4U) {   3448           if (__s1_len___4 >= 4U) {
3449             _L___10: /* CIL Label */   3449             _L___10: /* CIL Label */
3450             if (! ((size_t )((void const   *)("jpeg" + 1)) - (size_t )((void const   *)"jpeg") == 1U)) {   3450             if (! ((size_t )((void const   *)("jpeg" + 1)) - (size_t )((void const   *)"jpeg") == 1U)) {
3451               tmp___77 = 1;   3451               tmp___77 = 1;
3452             } else   3452             } else
3453             if (__s2_len___4 >= 4U) {   3453             if (__s2_len___4 >= 4U) {
3454               tmp___77 = 1;   3454               tmp___77 = 1;
3455             } else {   3455             } else {
3456               tmp___77 = 0;   3456               tmp___77 = 0;
3457             }   3457             }
3458           } else {   3458           } else {
3459             tmp___77 = 0;   3459             tmp___77 = 0;
3460           }   3460           }
3461           if (tmp___77) {   3461           if (tmp___77) {
3462             tmp___72 = __builtin_strcmp((char const   *)opt, "jpeg");   3462             tmp___72 = __builtin_strcmp((char const   *)opt, "jpeg");
3463             tmp___76 = tmp___72;   3463             tmp___76 = tmp___72;
3464           } else {   3464           } else {
3465             tmp___75 = __builtin_strcmp((char const   *)opt, "jpeg");   3465             tmp___75 = __builtin_strcmp((char const   *)opt, "jpeg");
3466             tmp___76 = tmp___75;   3466             tmp___76 = tmp___75;
3467           }   3467           }
3468         } else {   3468         } else {
3469           tmp___75 = __builtin_strcmp((char const   *)opt, "jpeg");   3469           tmp___75 = __builtin_strcmp((char const   *)opt, "jpeg");
3470           tmp___76 = tmp___75;   3470           tmp___76 = tmp___75;
3471         }   3471         }
3472         tmp___79 = tmp___76;   3472         tmp___79 = tmp___76;
3473       } else {   3473       } else {
3474         tmp___78 = strncmp((char const   *)opt, "jpeg", (size_t )4);   3474         tmp___78 = strncmp((char const   *)opt, "jpeg", (size_t )4);
3475         tmp___79 = tmp___78;   3475         tmp___79 = tmp___78;
3476       }   3476       }
3477       if (tmp___79 == 0) {   3477       if (tmp___79 == 0) {
3478         tmp___0 = __builtin_strchr(opt, ':');   3478         tmp___0 = __builtin_strchr(opt, ':');
3479         cp = tmp___0;   3479         cp = tmp___0;
3480         defcompression = (uint16 )7;   3480         defcompression = (uint16 )7;
3481         while (cp) {   3481         while (cp) {
3482           tmp___1 = __ctype_b_loc();   3482           tmp___1 = __ctype_b_loc();
3483           if ((int const   )*(*tmp___1 + (int )*(cp + 1)) & 2048) {   3483           if ((int const   )*(*tmp___1 + (int )*(cp + 1)) & 2048) {
3484             quality = atoi((char const   *)(cp + 1));   3484             quality = atoi((char const   *)(cp + 1));
3485           } else   3485           } else
3486           if ((int )*(cp + 1) == 114) {   3486           if ((int )*(cp + 1) == 114) {
3487             jpegcolormode = 0;   3487             jpegcolormode = 0;
3488           } else {   3488           } else {
3489             usage();   3489             usage();
3490           }   3490           }
3491           tmp___3 = __builtin_strchr(cp + 1, ':');   3491           tmp___3 = __builtin_strchr(cp + 1, ':');
3492           cp = tmp___3;   3492           cp = tmp___3;
3493         }   3493         }
3494       } else {   3494       } else {
3495         if (0) {   3495         if (0) {
3496           if (0) {   3496           if (0) {
3497             __s1_len___3 = strlen((char const   *)opt);   3497             __s1_len___3 = strlen((char const   *)opt);
3498             __s2_len___3 = strlen("g3");   3498             __s2_len___3 = strlen("g3");
3499             if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3499             if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3500               goto _L___8;   3500               goto _L___8;
3501             } else   3501             } else
3502             if (__s1_len___3 >= 4U) {   3502             if (__s1_len___3 >= 4U) {
3503               _L___8: /* CIL Label */   3503               _L___8: /* CIL Label */
3504               if (! ((size_t )((void const   *)("g3" + 1)) - (size_t )((void const   *)"g3") == 1U)) {   3504               if (! ((size_t )((void const   *)("g3" + 1)) - (size_t )((void const   *)"g3") == 1U)) {
3505                 tmp___64 = 1;   3505                 tmp___64 = 1;
3506               } else   3506               } else
3507               if (__s2_len___3 >= 4U) {   3507               if (__s2_len___3 >= 4U) {
3508                 tmp___64 = 1;   3508                 tmp___64 = 1;
3509               } else {   3509               } else {
3510                 tmp___64 = 0;   3510                 tmp___64 = 0;
3511               }   3511               }
3512             } else {   3512             } else {
3513               tmp___64 = 0;   3513               tmp___64 = 0;
3514             }   3514             }
3515             if (tmp___64) {   3515             if (tmp___64) {
3516               tmp___59 = __builtin_strcmp((char const   *)opt, "g3");   3516               tmp___59 = __builtin_strcmp((char const   *)opt, "g3");
3517               tmp___63 = tmp___59;   3517               tmp___63 = tmp___59;
3518             } else {   3518             } else {
3519               tmp___62 = __builtin_strcmp((char const   *)opt, "g3");   3519               tmp___62 = __builtin_strcmp((char const   *)opt, "g3");
3520               tmp___63 = tmp___62;   3520               tmp___63 = tmp___62;
3521             }   3521             }
3522           } else {   3522           } else {
3523             tmp___62 = __builtin_strcmp((char const   *)opt, "g3");   3523             tmp___62 = __builtin_strcmp((char const   *)opt, "g3");
3524             tmp___63 = tmp___62;   3524             tmp___63 = tmp___62;
3525           }   3525           }
3526           tmp___66 = tmp___63;   3526           tmp___66 = tmp___63;
3527         } else {   3527         } else {
3528           tmp___65 = strncmp((char const   *)opt, "g3", (size_t )2);   3528           tmp___65 = strncmp((char const   *)opt, "g3", (size_t )2);
3529           tmp___66 = tmp___65;   3529           tmp___66 = tmp___65;
3530         }   3530         }
3531         if (tmp___66 == 0) {   3531         if (tmp___66 == 0) {
3532           processG3Options(opt);   3532           processG3Options(opt);
3533           defcompression = (uint16 )3;   3533           defcompression = (uint16 )3;
3534         } else {   3534         } else {
3535           if (0) {   3535           if (0) {
3536             __s1_len___2 = strlen((char const   *)opt);   3536             __s1_len___2 = strlen((char const   *)opt);
3537             __s2_len___2 = strlen("g4");   3537             __s2_len___2 = strlen("g4");
3538             if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3538             if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3539               goto _L___6;   3539               goto _L___6;
3540             } else   3540             } else
3541             if (__s1_len___2 >= 4U) {   3541             if (__s1_len___2 >= 4U) {
3542               _L___6: /* CIL Label */   3542               _L___6: /* CIL Label */
3543               if (! ((size_t )((void const   *)("g4" + 1)) - (size_t )((void const   *)"g4") == 1U)) {   3543               if (! ((size_t )((void const   *)("g4" + 1)) - (size_t )((void const   *)"g4") == 1U)) {
3544                 tmp___55 = 1;   3544                 tmp___55 = 1;
3545               } else   3545               } else
3546               if (__s2_len___2 >= 4U) {   3546               if (__s2_len___2 >= 4U) {
3547                 tmp___55 = 1;   3547                 tmp___55 = 1;
3548               } else {   3548               } else {
3549                 tmp___55 = 0;   3549                 tmp___55 = 0;
3550               }   3550               }
3551             } else {   3551             } else {
3552               tmp___55 = 0;   3552               tmp___55 = 0;
3553             }   3553             }
3554             if (tmp___55) {   3554             if (tmp___55) {
3555               tmp___50 = __builtin_strcmp((char const   *)opt, "g4");   3555               tmp___50 = __builtin_strcmp((char const   *)opt, "g4");
3556               tmp___54 = tmp___50;   3556               tmp___54 = tmp___50;
3557             } else {   3557             } else {
3558               tmp___53 = __builtin_strcmp((char const   *)opt, "g4");   3558               tmp___53 = __builtin_strcmp((char const   *)opt, "g4");
3559               tmp___54 = tmp___53;   3559               tmp___54 = tmp___53;
3560             }   3560             }
3561           } else {   3561           } else {
3562             tmp___53 = __builtin_strcmp((char const   *)opt, "g4");   3562             tmp___53 = __builtin_strcmp((char const   *)opt, "g4");
3563             tmp___54 = tmp___53;   3563             tmp___54 = tmp___53;
3564           }   3564           }
3565           if (tmp___54 == 0) {   3565           if (tmp___54 == 0) {
3566             defcompression = (uint16 )4;   3566             defcompression = (uint16 )4;
3567           } else {   3567           } else {
3568             if (0) {   3568             if (0) {
3569               if (0) {   3569               if (0) {
3570                 __s1_len___1 = strlen((char const   *)opt);   3570                 __s1_len___1 = strlen((char const   *)opt);
3571                 __s2_len___1 = strlen("lzw");   3571                 __s2_len___1 = strlen("lzw");
3572                 if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3572                 if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3573                   goto _L___4;   3573                   goto _L___4;
3574                 } else   3574                 } else
3575                 if (__s1_len___1 >= 4U) {   3575                 if (__s1_len___1 >= 4U) {
3576                   _L___4: /* CIL Label */   3576                   _L___4: /* CIL Label */
3577                   if (! ((size_t )((void const   *)("lzw" + 1)) - (size_t )((void const   *)"lzw") == 1U)) {   3577                   if (! ((size_t )((void const   *)("lzw" + 1)) - (size_t )((void const   *)"lzw") == 1U)) {
3578                     tmp___44 = 1;   3578                     tmp___44 = 1;
3579                   } else   3579                   } else
3580                   if (__s2_len___1 >= 4U) {   3580                   if (__s2_len___1 >= 4U) {
3581                     tmp___44 = 1;   3581                     tmp___44 = 1;
3582                   } else {   3582                   } else {
3583                     tmp___44 = 0;   3583                     tmp___44 = 0;
3584                   }   3584                   }
3585                 } else {   3585                 } else {
3586                   tmp___44 = 0;   3586                   tmp___44 = 0;
3587                 }   3587                 }
3588                 if (tmp___44) {   3588                 if (tmp___44) {
3589                   tmp___39 = __builtin_strcmp((char const   *)opt, "lzw");   3589                   tmp___39 = __builtin_strcmp((char const   *)opt, "lzw");
3590                   tmp___43 = tmp___39;   3590                   tmp___43 = tmp___39;
3591                 } else {   3591                 } else {
3592                   tmp___42 = __builtin_strcmp((char const   *)opt, "lzw");   3592                   tmp___42 = __builtin_strcmp((char const   *)opt, "lzw");
3593                   tmp___43 = tmp___42;   3593                   tmp___43 = tmp___42;
3594                 }   3594                 }
3595               } else {   3595               } else {
3596                 tmp___42 = __builtin_strcmp((char const   *)opt, "lzw");   3596                 tmp___42 = __builtin_strcmp((char const   *)opt, "lzw");
3597                 tmp___43 = tmp___42;   3597                 tmp___43 = tmp___42;
3598               }   3598               }
3599               tmp___46 = tmp___43;   3599               tmp___46 = tmp___43;
3600             } else {   3600             } else {
3601               tmp___45 = strncmp((char const   *)opt, "lzw", (size_t )3);   3601               tmp___45 = strncmp((char const   *)opt, "lzw", (size_t )3);
3602               tmp___46 = tmp___45;   3602               tmp___46 = tmp___45;
3603             }   3603             }
3604             if (tmp___46 == 0) {   3604             if (tmp___46 == 0) {
3605               tmp___5 = __builtin_strchr(opt, ':');   3605               tmp___5 = __builtin_strchr(opt, ':');
3606               cp___0 = tmp___5;   3606               cp___0 = tmp___5;
3607               if (cp___0) {   3607               if (cp___0) {
3608                 tmp___6 = atoi((char const   *)(cp___0 + 1));   3608                 tmp___6 = atoi((char const   *)(cp___0 + 1));
3609                 defpredictor = (uint16 )tmp___6;   3609                 defpredictor = (uint16 )tmp___6;
3610               } else {   3610               } else {
3611     3611  
3612               }   3612               }
3613               defcompression = (uint16 )5;   3613               defcompression = (uint16 )5;
3614             } else {   3614             } else {
3615               if (0) {   3615               if (0) {
3616                 if (0) {   3616                 if (0) {
3617                   __s1_len___0 = strlen((char const   *)opt);   3617                   __s1_len___0 = strlen((char const   *)opt);
3618                   __s2_len___0 = strlen("zip");   3618                   __s2_len___0 = strlen("zip");
3619                   if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3619                   if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3620                     goto _L___2;   3620                     goto _L___2;
3621                   } else   3621                   } else
3622                   if (__s1_len___0 >= 4U) {   3622                   if (__s1_len___0 >= 4U) {
3623                     _L___2: /* CIL Label */   3623                     _L___2: /* CIL Label */
3624                     if (! ((size_t )((void const   *)("zip" + 1)) - (size_t )((void const   *)"zip") == 1U)) {   3624                     if (! ((size_t )((void const   *)("zip" + 1)) - (size_t )((void const   *)"zip") == 1U)) {
3625                       tmp___31 = 1;   3625                       tmp___31 = 1;
3626                     } else   3626                     } else
3627                     if (__s2_len___0 >= 4U) {   3627                     if (__s2_len___0 >= 4U) {
3628                       tmp___31 = 1;   3628                       tmp___31 = 1;
3629                     } else {   3629                     } else {
3630                       tmp___31 = 0;   3630                       tmp___31 = 0;
3631                     }   3631                     }
3632                   } else {   3632                   } else {
3633                     tmp___31 = 0;   3633                     tmp___31 = 0;
3634                   }   3634                   }
3635                   if (tmp___31) {   3635                   if (tmp___31) {
3636                     tmp___26 = __builtin_strcmp((char const   *)opt, "zip");   3636                     tmp___26 = __builtin_strcmp((char const   *)opt, "zip");
3637                     tmp___30 = tmp___26;   3637                     tmp___30 = tmp___26;
3638                   } else {   3638                   } else {
3639                     tmp___29 = __builtin_strcmp((char const   *)opt, "zip");   3639                     tmp___29 = __builtin_strcmp((char const   *)opt, "zip");
3640                     tmp___30 = tmp___29;   3640                     tmp___30 = tmp___29;
3641                   }   3641                   }
3642                 } else {   3642                 } else {
3643                   tmp___29 = __builtin_strcmp((char const   *)opt, "zip");   3643                   tmp___29 = __builtin_strcmp((char const   *)opt, "zip");
3644                   tmp___30 = tmp___29;   3644                   tmp___30 = tmp___29;
3645                 }   3645                 }
3646                 tmp___33 = tmp___30;   3646                 tmp___33 = tmp___30;
3647               } else {   3647               } else {
3648                 tmp___32 = strncmp((char const   *)opt, "zip", (size_t )3);   3648                 tmp___32 = strncmp((char const   *)opt, "zip", (size_t )3);
3649                 tmp___33 = tmp___32;   3649                 tmp___33 = tmp___32;
3650               }   3650               }
3651               if (tmp___33 == 0) {   3651               if (tmp___33 == 0) {
3652                 tmp___8 = __builtin_strchr(opt, ':');   3652                 tmp___8 = __builtin_strchr(opt, ':');
3653                 cp___1 = tmp___8;   3653                 cp___1 = tmp___8;
3654                 if (cp___1) {   3654                 if (cp___1) {
3655                   tmp___9 = atoi((char const   *)(cp___1 + 1));   3655                   tmp___9 = atoi((char const   *)(cp___1 + 1));
3656                   defpredictor = (uint16 )tmp___9;   3656                   defpredictor = (uint16 )tmp___9;
3657                 } else {   3657                 } else {
3658     3658  
3659                 }   3659                 }
3660                 defcompression = (uint16 )8;   3660                 defcompression = (uint16 )8;
3661               } else {   3661               } else {
3662                 if (0) {   3662                 if (0) {
3663                   if (0) {   3663                   if (0) {
3664                     __s1_len = strlen((char const   *)opt);   3664                     __s1_len = strlen((char const   *)opt);
3665                     __s2_len = strlen("jbig");   3665                     __s2_len = strlen("jbig");
3666                     if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {   3666                     if (! ((size_t )((void const   *)(opt + 1)) - (size_t )((void const   *)opt) == 1U)) {
3667                       goto _L___0;   3667                       goto _L___0;
3668                     } else   3668                     } else
3669                     if (__s1_len >= 4U) {   3669                     if (__s1_len >= 4U) {
3670                       _L___0: /* CIL Label */   3670                       _L___0: /* CIL Label */
3671                       if (! ((size_t )((void const   *)("jbig" + 1)) - (size_t )((void const   *)"jbig") == 1U)) {   3671                       if (! ((size_t )((void const   *)("jbig" + 1)) - (size_t )((void const   *)"jbig") == 1U)) {
3672                         tmp___18 = 1;   3672                         tmp___18 = 1;
3673                       } else   3673                       } else
3674                       if (__s2_len >= 4U) {   3674                       if (__s2_len >= 4U) {
3675                         tmp___18 = 1;   3675                         tmp___18 = 1;
3676                       } else {   3676                       } else {
3677                         tmp___18 = 0;   3677                         tmp___18 = 0;
3678                       }   3678                       }
3679                     } else {   3679                     } else {
3680                       tmp___18 = 0;   3680                       tmp___18 = 0;
3681                     }   3681                     }
3682                     if (tmp___18) {   3682                     if (tmp___18) {
3683                       tmp___13 = __builtin_strcmp((char const   *)opt, "jbig");   3683                       tmp___13 = __builtin_strcmp((char const   *)opt, "jbig");
3684                       tmp___17 = tmp___13;   3684                       tmp___17 = tmp___13;
3685                     } else {   3685                     } else {
3686                       tmp___16 = __builtin_strcmp((char const   *)opt, "jbig");   3686                       tmp___16 = __builtin_strcmp((char const   *)opt, "jbig");
3687                       tmp___17 = tmp___16;   3687                       tmp___17 = tmp___16;
3688                     }   3688                     }
3689                   } else {   3689                   } else {
3690                     tmp___16 = __builtin_strcmp((char const   *)opt, "jbig");   3690                     tmp___16 = __builtin_strcmp((char const   *)opt, "jbig");
3691                     tmp___17 = tmp___16;   3691                     tmp___17 = tmp___16;
3692                   }   3692                   }
3693                   tmp___20 = tmp___17;   3693                   tmp___20 = tmp___17;
3694                 } else {   3694                 } else {
3695                   tmp___19 = strncmp((char const   *)opt, "jbig", (size_t )4);   3695                   tmp___19 = strncmp((char const   *)opt, "jbig", (size_t )4);
3696                   tmp___20 = tmp___19;   3696                   tmp___20 = tmp___19;
3697                 }   3697                 }
3698                 if (tmp___20 == 0) {   3698                 if (tmp___20 == 0) {
3699                   defcompression = (uint16 )34661;   3699                   defcompression = (uint16 )34661;
3700                 } else {   3700                 } else {
3701                   return (0);   3701                   return (0);
3702                 }   3702                 }
3703               }   3703               }
3704             }   3704             }
3705           }   3705           }
3706         }   3706         }
3707       }   3707       }
3708     }   3708     }
3709   }   3709   }
3710   return (1);   3710   return (1);
3711 }   3711 }
3712 }   3712 }
3713 char *stuff[49]  =   3713 char *stuff[49]  =
3714   {      (char *)"usage: tiffcp [options] input... output",      (char *)"where options are:",      (char *)" -a              append to output instead of overwriting",      (char *)" -o offset       set initial directory offset",   3714   {      (char *)"usage: tiffcp [options] input... output",      (char *)"where options are:",      (char *)" -a              append to output instead of overwriting",      (char *)" -o offset       set initial directory offset",
3715         (char *)" -p contig       pack samples contiguously (e.g. RGBRGB...)",      (char *)" -p separate     store samples separately (e.g. RRR...GGG...BBB...)",      (char *)" -s              write output in strips",      (char *)" -t              write output in tiles",   3715         (char *)" -p contig       pack samples contiguously (e.g. RGBRGB...)",      (char *)" -p separate     store samples separately (e.g. RRR...GGG...BBB...)",      (char *)" -s              write output in strips",      (char *)" -t              write output in tiles",
3716         (char *)" -8              write BigTIFF instead of default ClassicTIFF",      (char *)" -i              ignore read errors",      (char *)" -b file[,#]     bias (dark) monochrome image to be subtracted from all others",      (char *)" -,=%            use % rather than , to separate image #\'s (per Note below)",   3716         (char *)" -8              write BigTIFF instead of default ClassicTIFF",      (char *)" -i              ignore read errors",      (char *)" -b file[,#]     bias (dark) monochrome image to be subtracted from all others",      (char *)" -,=%            use % rather than , to separate image #\'s (per Note below)",
3717         (char *)"",      (char *)" -r #            make each strip have no more than # rows",      (char *)" -w #            set output tile width (pixels)",      (char *)" -l #            set output tile length (pixels)",   3717         (char *)"",      (char *)" -r #            make each strip have no more than # rows",      (char *)" -w #            set output tile width (pixels)",      (char *)" -l #            set output tile length (pixels)",
3718         (char *)"",      (char *)" -f lsb2msb      force lsb-to-msb FillOrder for output",      (char *)" -f msb2lsb      force msb-to-lsb FillOrder for output",      (char *)"",   3718         (char *)"",      (char *)" -f lsb2msb      force lsb-to-msb FillOrder for output",      (char *)" -f msb2lsb      force msb-to-lsb FillOrder for output",      (char *)"",
3719         (char *)" -c lzw[:opts]   compress output with Lempel-Ziv & Welch encoding",      (char *)" -c zip[:opts]   compress output with deflate encoding",      (char *)" -c jpeg[:opts]  compress output with JPEG encoding",      (char *)" -c jbig         compress output with ISO JBIG encoding",   3719         (char *)" -c lzw[:opts]   compress output with Lempel-Ziv & Welch encoding",      (char *)" -c zip[:opts]   compress output with deflate encoding",      (char *)" -c jpeg[:opts]  compress output with JPEG encoding",      (char *)" -c jbig         compress output with ISO JBIG encoding",
3720         (char *)" -c packbits     compress output with packbits encoding",      (char *)" -c g3[:opts]    compress output with CCITT Group 3 encoding",      (char *)" -c g4           compress output with CCITT Group 4 encoding",      (char *)" -c none         use no compression algorithm on output",   3720         (char *)" -c packbits     compress output with packbits encoding",      (char *)" -c g3[:opts]    compress output with CCITT Group 3 encoding",      (char *)" -c g4           compress output with CCITT Group 4 encoding",      (char *)" -c none         use no compression algorithm on output",
3721         (char *)"",      (char *)"Group 3 options:",      (char *)" 1d              use default CCITT Group 3 1D-encoding",      (char *)" 2d              use optional CCITT Group 3 2D-encoding",   3721         (char *)"",      (char *)"Group 3 options:",      (char *)" 1d              use default CCITT Group 3 1D-encoding",      (char *)" 2d              use optional CCITT Group 3 2D-encoding",
3722         (char *)" fill            byte-align EOL codes",      (char *)"For example, -c g3:2d:fill to get G3-2D-encoded data with byte-aligned EOLs",      (char *)"",      (char *)"JPEG options:",   3722         (char *)" fill            byte-align EOL codes",      (char *)"For example, -c g3:2d:fill to get G3-2D-encoded data with byte-aligned EOLs",      (char *)"",      (char *)"JPEG options:",
3723         (char *)" #               set compression quality level (0-100, default 75)",      (char *)" r               output color image as RGB rather than YCbCr",      (char *)"For example, -c jpeg:r:50 to get JPEG-encoded RGB data with 50% comp. quality",      (char *)"",   3723         (char *)" #               set compression quality level (0-100, default 75)",      (char *)" r               output color image as RGB rather than YCbCr",      (char *)"For example, -c jpeg:r:50 to get JPEG-encoded RGB data with 50% comp. quality",      (char *)"",
3724         (char *)"LZW and deflate options:",      (char *)" #               set predictor value",      (char *)"For example, -c lzw:2 to get LZW-encoded data with horizontal differencing",      (char *)"",   3724         (char *)"LZW and deflate options:",      (char *)" #               set predictor value",      (char *)"For example, -c lzw:2 to get LZW-encoded data with horizontal differencing",      (char *)"",
3725         (char *)"Note that input filenames may be of the form filename,x,y,z",      (char *)"where x, y, and z specify image numbers in the filename to copy.",      (char *)"example:  tiffcp -c none -b esp.tif,1 esp.tif,0 test.tif",      (char *)"  subtract 2nd image in esp.tif from 1st yielding uncompressed result test.tif",   3725         (char *)"Note that input filenames may be of the form filename,x,y,z",      (char *)"where x, y, and z specify image numbers in the filename to copy.",      (char *)"example:  tiffcp -c none -b esp.tif,1 esp.tif,0 test.tif",      (char *)"  subtract 2nd image in esp.tif from 1st yielding uncompressed result test.tif",
3726         (char *)((void *)0)};   3726         (char *)((void *)0)};
3727 static void usage(void)   3727 static void usage(void)
3728 {   3728 {
3729   char buf[8192] ;   3729   char buf[8192] ;
3730   int i ;   3730   int i ;
3731   char const   *tmp ;   3731   char const   *tmp ;
3732     3732  
3733   {   3733   {
3734   setbuf((FILE */* __restrict  */)stderr, (char */* __restrict  */)(buf));   3734   setbuf((FILE */* __restrict  */)stderr, (char */* __restrict  */)(buf));
3735   tmp = TIFFGetVersion();   3735   tmp = TIFFGetVersion();
3736   fprintf((FILE */* __restrict  */)stderr,   3736   fprintf((FILE */* __restrict  */)stderr,
3737           (char const   */* __restrict  */)"%s\n\n", tmp);   3737           (char const   */* __restrict  */)"%s\n\n", tmp);
3738   i = 0;   3738   i = 0;
3739   while ((unsigned int )stuff[i] != (unsigned int )((void *)0)) {   3739   while ((unsigned int )stuff[i] != (unsigned int )((void *)0)) {
3740     fprintf((FILE */* __restrict  */)stderr,   3740     fprintf((FILE */* __restrict  */)stderr,
3741             (char const   */* __restrict  */)"%s\n", stuff[i]);   3741             (char const   */* __restrict  */)"%s\n", stuff[i]);
3742     i ++;   3742     i ++;
3743   }   3743   }
3744   exit(-1);   3744   exit(-1);
3745 }   3745 }
3746 }   3746 }
3747 static void cpTag(TIFF *in , TIFF *out , uint16 tag , uint16 count ,   3747 static void cpTag(TIFF *in , TIFF *out , uint16 tag , uint16 count ,
3748                   TIFFDataType type )   3748                   TIFFDataType type )
3749 {   3749 {
3750   uint16 shortv ;   3750   uint16 shortv ;
3751   int tmp ;   3751   int tmp ;
3752   uint16 shortv1 ;   3752   uint16 shortv1 ;
3753   uint16 shortv2 ;   3753   uint16 shortv2 ;
3754   int tmp___0 ;   3754   int tmp___0 ;
3755   uint16 *tr ;   3755   uint16 *tr ;
3756   uint16 *tg ;   3756   uint16 *tg ;
3757   uint16 *tb ;   3757   uint16 *tb ;
3758   uint16 *ta ;   3758   uint16 *ta ;
3759   int tmp___1 ;   3759   int tmp___1 ;
3760   uint16 shortv1___0 ;   3760   uint16 shortv1___0 ;
3761   uint16 *shortav ;   3761   uint16 *shortav ;
3762   int tmp___2 ;   3762   int tmp___2 ;
3763   uint32 longv ;   3763   uint32 longv ;
3764   int tmp___3 ;   3764   int tmp___3 ;
3765   float floatv ;   3765   float floatv ;
3766   int tmp___4 ;   3766   int tmp___4 ;
3767   float *floatav ;   3767   float *floatav ;
3768   int tmp___5 ;   3768   int tmp___5 ;
3769   char *stringv ;   3769   char *stringv ;
3770   int tmp___6 ;   3770   int tmp___6 ;
3771   double doublev ;   3771   double doublev ;
3772   int tmp___7 ;   3772   int tmp___7 ;
3773   double *doubleav ;   3773   double *doubleav ;
3774   int tmp___8 ;   3774   int tmp___8 ;
3775   char const   *tmp___9 ;   3775   char const   *tmp___9 ;
3776     3776  
3777   {   3777   {
3778   switch ((unsigned int )type) {   3778   switch ((unsigned int )type) {
3779   case 3U:   3779   case 3U:
3780   if ((int )count == 1) {   3780   if ((int )count == 1) {
3781     tmp = TIFFGetField(in, (uint32 )tag, & shortv);   3781     tmp = TIFFGetField(in, (uint32 )tag, & shortv);
3782     if (tmp) {   3782     if (tmp) {
3783       TIFFSetField(out, (uint32 )tag, (int )shortv);   3783       TIFFSetField(out, (uint32 )tag, (int )shortv);
3784     } else {   3784     } else {
3785     3785  
3786     }   3786     }
3787   } else   3787   } else
3788   if ((int )count == 2) {   3788   if ((int )count == 2) {
3789     tmp___0 = TIFFGetField(in, (uint32 )tag, & shortv1, & shortv2);   3789     tmp___0 = TIFFGetField(in, (uint32 )tag, & shortv1, & shortv2);
3790     if (tmp___0) {   3790     if (tmp___0) {
3791       TIFFSetField(out, (uint32 )tag, (int )shortv1, (int )shortv2);   3791       TIFFSetField(out, (uint32 )tag, (int )shortv1, (int )shortv2);
3792     } else {   3792     } else {
3793     3793  
3794     }   3794     }
3795   } else   3795   } else
3796   if ((int )count == 4) {   3796   if ((int )count == 4) {
3797     tmp___1 = TIFFGetField(in, (uint32 )tag, & tr, & tg, & tb, & ta);   3797     tmp___1 = TIFFGetField(in, (uint32 )tag, & tr, & tg, & tb, & ta);
3798     if (tmp___1) {   3798     if (tmp___1) {
3799       TIFFSetField(out, (uint32 )tag, tr, tg, tb, ta);   3799       TIFFSetField(out, (uint32 )tag, tr, tg, tb, ta);
3800     } else {   3800     } else {
3801     3801  
3802     }   3802     }
3803   } else   3803   } else
3804   if ((int )count == 65535) {   3804   if ((int )count == 65535) {
3805     tmp___2 = TIFFGetField(in, (uint32 )tag, & shortv1___0, & shortav);   3805     tmp___2 = TIFFGetField(in, (uint32 )tag, & shortv1___0, & shortav);
3806     if (tmp___2) {   3806     if (tmp___2) {
3807       TIFFSetField(out, (uint32 )tag, (int )shortv1___0, shortav);   3807       TIFFSetField(out, (uint32 )tag, (int )shortv1___0, shortav);
3808     } else {   3808     } else {
3809     3809  
3810     }   3810     }
3811   } else {   3811   } else {
3812     3812  
3813   }   3813   }
3814   break;   3814   break;
3815   case 4U:   3815   case 4U:
3816   tmp___3 = TIFFGetField(in, (uint32 )tag, & longv);   3816   tmp___3 = TIFFGetField(in, (uint32 )tag, & longv);
3817   if (tmp___3) {   3817   if (tmp___3) {
3818     TIFFSetField(out, (uint32 )tag, longv);   3818     TIFFSetField(out, (uint32 )tag, longv);
3819   } else {   3819   } else {
3820     3820  
3821   }   3821   }
3822   break;   3822   break;
3823   case 5U:   3823   case 5U:
3824   if ((int )count == 1) {   3824   if ((int )count == 1) {
3825     tmp___4 = TIFFGetField(in, (uint32 )tag, & floatv);   3825     tmp___4 = TIFFGetField(in, (uint32 )tag, & floatv);
3826     if (tmp___4) {   3826     if (tmp___4) {
3827       TIFFSetField(out, (uint32 )tag, (double )floatv);   3827       TIFFSetField(out, (uint32 )tag, (double )floatv);
3828     } else {   3828     } else {
3829     3829  
3830     }   3830     }
3831   } else   3831   } else
3832   if ((int )count == 65535) {   3832   if ((int )count == 65535) {
3833     tmp___5 = TIFFGetField(in, (uint32 )tag, & floatav);   3833     tmp___5 = TIFFGetField(in, (uint32 )tag, & floatav);
3834     if (tmp___5) {   3834     if (tmp___5) {
3835       TIFFSetField(out, (uint32 )tag, floatav);   3835       TIFFSetField(out, (uint32 )tag, floatav);
3836     } else {   3836     } else {
3837     3837  
3838     }   3838     }
3839   } else {   3839   } else {
3840     3840  
3841   }   3841   }
3842   break;   3842   break;
3843   case 2U:   3843   case 2U:
3844   tmp___6 = TIFFGetField(in, (uint32 )tag, & stringv);   3844   tmp___6 = TIFFGetField(in, (uint32 )tag, & stringv);
3845   if (tmp___6) {   3845   if (tmp___6) {
3846     TIFFSetField(out, (uint32 )tag, stringv);   3846     TIFFSetField(out, (uint32 )tag, stringv);
3847   } else {   3847   } else {
3848     3848  
3849   }   3849   }
3850   break;   3850   break;
3851   case 12U:   3851   case 12U:
3852   if ((int )count == 1) {   3852   if ((int )count == 1) {
3853     tmp___7 = TIFFGetField(in, (uint32 )tag, & doublev);   3853     tmp___7 = TIFFGetField(in, (uint32 )tag, & doublev);
3854     if (tmp___7) {   3854     if (tmp___7) {
3855       TIFFSetField(out, (uint32 )tag, doublev);   3855       TIFFSetField(out, (uint32 )tag, doublev);
3856     } else {   3856     } else {
3857     3857  
3858     }   3858     }
3859   } else   3859   } else
3860   if ((int )count == 65535) {   3860   if ((int )count == 65535) {
3861     tmp___8 = TIFFGetField(in, (uint32 )tag, & doubleav);   3861     tmp___8 = TIFFGetField(in, (uint32 )tag, & doubleav);
3862     if (tmp___8) {   3862     if (tmp___8) {
3863       TIFFSetField(out, (uint32 )tag, doubleav);   3863       TIFFSetField(out, (uint32 )tag, doubleav);
3864     } else {   3864     } else {
3865     3865  
3866     }   3866     }
3867   } else {   3867   } else {
3868     3868  
3869   }   3869   }
3870   break;   3870   break;
3871   default:   3871   default:
3872   tmp___9 = TIFFFileName(in);   3872   tmp___9 = TIFFFileName(in);
3873   TIFFError(tmp___9, "Data type %d is not supported, tag %d skipped.",   3873   TIFFError(tmp___9, "Data type %d is not supported, tag %d skipped.",
3874             (int )tag, (unsigned int )type);   3874             (int )tag, (unsigned int )type);
3875   }   3875   }
3876   return;   3876   return;
3877 }   3877 }
3878 }   3878 }
3879 static struct cpTag tags[33]  =   3879 static struct cpTag tags[33]  =
3880   {      {(uint16 )254, (uint16 )1, (TIFFDataType )4},   3880   {      {(uint16 )254, (uint16 )1, (TIFFDataType )4},
3881         {(uint16 )263, (uint16 )1, (TIFFDataType )3},   3881         {(uint16 )263, (uint16 )1, (TIFFDataType )3},
3882         {(uint16 )269, (uint16 )1, (TIFFDataType )2},   3882         {(uint16 )269, (uint16 )1, (TIFFDataType )2},
3883         {(uint16 )270, (uint16 )1, (TIFFDataType )2},   3883         {(uint16 )270, (uint16 )1, (TIFFDataType )2},
3884         {(uint16 )271, (uint16 )1, (TIFFDataType )2},   3884         {(uint16 )271, (uint16 )1, (TIFFDataType )2},
3885         {(uint16 )272, (uint16 )1, (TIFFDataType )2},   3885         {(uint16 )272, (uint16 )1, (TIFFDataType )2},
3886         {(uint16 )280, (uint16 )1, (TIFFDataType )3},   3886         {(uint16 )280, (uint16 )1, (TIFFDataType )3},
3887         {(uint16 )281, (uint16 )1, (TIFFDataType )3},   3887         {(uint16 )281, (uint16 )1, (TIFFDataType )3},
3888         {(uint16 )282, (uint16 )1, (TIFFDataType )5},   3888         {(uint16 )282, (uint16 )1, (TIFFDataType )5},
3889         {(uint16 )283, (uint16 )1, (TIFFDataType )5},   3889         {(uint16 )283, (uint16 )1, (TIFFDataType )5},
3890         {(uint16 )285, (uint16 )1, (TIFFDataType )2},   3890         {(uint16 )285, (uint16 )1, (TIFFDataType )2},
3891         {(uint16 )286, (uint16 )1, (TIFFDataType )5},   3891         {(uint16 )286, (uint16 )1, (TIFFDataType )5},
3892         {(uint16 )287, (uint16 )1, (TIFFDataType )5},   3892         {(uint16 )287, (uint16 )1, (TIFFDataType )5},
3893         {(uint16 )296, (uint16 )1, (TIFFDataType )3},   3893         {(uint16 )296, (uint16 )1, (TIFFDataType )3},
3894         {(uint16 )305, (uint16 )1, (TIFFDataType )2},   3894         {(uint16 )305, (uint16 )1, (TIFFDataType )2},
3895         {(uint16 )306, (uint16 )1, (TIFFDataType )2},   3895         {(uint16 )306, (uint16 )1, (TIFFDataType )2},
3896         {(uint16 )315, (uint16 )1, (TIFFDataType )2},   3896         {(uint16 )315, (uint16 )1, (TIFFDataType )2},
3897         {(uint16 )316, (uint16 )1, (TIFFDataType )2},   3897         {(uint16 )316, (uint16 )1, (TIFFDataType )2},
3898         {(uint16 )318, (uint16 )-1, (TIFFDataType )5},   3898         {(uint16 )318, (uint16 )-1, (TIFFDataType )5},
3899         {(uint16 )319, (uint16 )-1, (TIFFDataType )5},   3899         {(uint16 )319, (uint16 )-1, (TIFFDataType )5},
3900         {(uint16 )321, (uint16 )2, (TIFFDataType )3},   3900         {(uint16 )321, (uint16 )2, (TIFFDataType )3},
3901         {(uint16 )332, (uint16 )1, (TIFFDataType )3},   3901         {(uint16 )332, (uint16 )1, (TIFFDataType )3},
3902         {(uint16 )336, (uint16 )2, (TIFFDataType )3},   3902         {(uint16 )336, (uint16 )2, (TIFFDataType )3},
3903         {(uint16 )337, (uint16 )1, (TIFFDataType )2},   3903         {(uint16 )337, (uint16 )1, (TIFFDataType )2},
3904         {(uint16 )339, (uint16 )1, (TIFFDataType )3},   3904         {(uint16 )339, (uint16 )1, (TIFFDataType )3},
3905         {(uint16 )529, (uint16 )-1, (TIFFDataType )5},   3905         {(uint16 )529, (uint16 )-1, (TIFFDataType )5},
3906         {(uint16 )530, (uint16 )2, (TIFFDataType )3},   3906         {(uint16 )530, (uint16 )2, (TIFFDataType )3},
3907         {(uint16 )531, (uint16 )1, (TIFFDataType )3},   3907         {(uint16 )531, (uint16 )1, (TIFFDataType )3},
3908         {(uint16 )532, (uint16 )-1, (TIFFDataType )5},   3908         {(uint16 )532, (uint16 )-1, (TIFFDataType )5},
3909         {(uint16 )338, (uint16 )-1, (TIFFDataType )3},   3909         {(uint16 )338, (uint16 )-1, (TIFFDataType )3},
3910         {(uint16 )340, (uint16 )1, (TIFFDataType )12},   3910         {(uint16 )340, (uint16 )1, (TIFFDataType )12},
3911         {(uint16 )341, (uint16 )1, (TIFFDataType )12},   3911         {(uint16 )341, (uint16 )1, (TIFFDataType )12},
3912         {(uint16 )37439, (uint16 )1, (TIFFDataType )12}};   3912         {(uint16 )37439, (uint16 )1, (TIFFDataType )12}};
3913 static copyFunc pickCopyFunc(TIFF *in , TIFF *out , uint16 bitspersample ,   3913 static copyFunc pickCopyFunc(TIFF *in , TIFF *out , uint16 bitspersample ,
3914                              uint16 samplesperpixel ) ;   3914                              uint16 samplesperpixel ) ;
3915 static int tiffcp(TIFF *in , TIFF *out )   3915 static int tiffcp(TIFF *in , TIFF *out )
3916 {   3916 {
3917   uint16 bitspersample ;   3917   uint16 bitspersample ;
3918   uint16 samplesperpixel ;   3918   uint16 samplesperpixel ;
3919   int (*cf)(TIFF *in , TIFF *out , uint32 l , uint32 w , uint16 samplesperpixel ) ;   3919   int (*cf)(TIFF *in , TIFF *out , uint32 l , uint32 w , uint16 samplesperpixel ) ;
3920   uint32 width ;   3920   uint32 width ;
3921   uint32 length ;   3921   uint32 length ;
3922   struct cpTag *p ;   3922   struct cpTag *p ;
3923   int tmp ;   3923   int tmp ;
3924   int tmp___0 ;   3924   int tmp___0 ;
3925   int tmp___1 ;   3925   int tmp___1 ;
3926   int tmp___2 ;   3926   int tmp___2 ;
3927   int tmp___3 ;   3927   int tmp___3 ;
3928   uint16 input_compression ;   3928   uint16 input_compression ;
3929   uint16 input_photometric ;   3929   uint16 input_photometric ;
3930   int tmp___4 ;   3930   int tmp___4 ;
3931   int tmp___5 ;   3931   int tmp___5 ;
3932   int tmp___6 ;   3932   int tmp___6 ;
3933   char const   *tmp___7 ;   3933   char const   *tmp___7 ;
3934   char const   *tmp___8 ;   3934   char const   *tmp___8 ;
3935   int tmp___9 ;   3935   int tmp___9 ;
3936   int tmp___10 ;   3936   int tmp___10 ;
3937   int tmp___11 ;   3937   int tmp___11 ;
3938   int tmp___12 ;   3938   int tmp___12 ;
3939   uint32 len32 ;   3939   uint32 len32 ;
3940   void **data ;   3940   void **data ;
3941   int tmp___13 ;   3941   int tmp___13 ;
3942   uint16 ninks ;   3942   uint16 ninks ;
3943   char const   *inknames ;   3943   char const   *inknames ;
3944   int inknameslen ;   3944   int inknameslen ;
3945   size_t tmp___14 ;   3945   size_t tmp___14 ;
3946   char const   *cp ;   3946   char const   *cp ;
3947   void *tmp___15 ;   3947   void *tmp___15 ;
3948   char *tmp___16 ;   3948   char *tmp___16 ;
3949   size_t tmp___17 ;   3949   size_t tmp___17 ;
3950   int tmp___18 ;   3950   int tmp___18 ;
3951   int tmp___19 ;   3951   int tmp___19 ;
3952   unsigned short pg0 ;   3952   unsigned short pg0 ;
3953   unsigned short pg1 ;   3953   unsigned short pg1 ;
3954   int tmp___20 ;   3954   int tmp___20 ;
3955   int tmp___21 ;   3955   int tmp___21 ;
3956   int tmp___22 ;   3956   int tmp___22 ;
3957   int tmp___23 ;   3957   int tmp___23 ;
3958     3958  
3959   {   3959   {
3960   tmp = TIFFGetField(in, (uint32 )256, & width);   3960   tmp = TIFFGetField(in, (uint32 )256, & width);
3961   if (tmp) {   3961   if (tmp) {
3962     TIFFSetField(out, (uint32 )256, width);   3962     TIFFSetField(out, (uint32 )256, width);
3963   } else {   3963   } else {
3964     3964  
3965   }   3965   }
3966   tmp___0 = TIFFGetField(in, (uint32 )257, & length);   3966   tmp___0 = TIFFGetField(in, (uint32 )257, & length);
3967   if (tmp___0) {   3967   if (tmp___0) {
3968     TIFFSetField(out, (uint32 )257, length);   3968     TIFFSetField(out, (uint32 )257, length);
3969   } else {   3969   } else {
3970     3970  
3971   }   3971   }
3972   tmp___1 = TIFFGetField(in, (uint32 )258, & bitspersample);   3972   tmp___1 = TIFFGetField(in, (uint32 )258, & bitspersample);
3973   if (tmp___1) {   3973   if (tmp___1) {
3974     TIFFSetField(out, (uint32 )258, (int )bitspersample);   3974     TIFFSetField(out, (uint32 )258, (int )bitspersample);
3975   } else {   3975   } else {
3976     3976  
3977   }   3977   }
3978   tmp___2 = TIFFGetField(in, (uint32 )277, & samplesperpixel);   3978   tmp___2 = TIFFGetField(in, (uint32 )277, & samplesperpixel);
3979   if (tmp___2) {   3979   if (tmp___2) {
3980     TIFFSetField(out, (uint32 )277, (int )samplesperpixel);   3980     TIFFSetField(out, (uint32 )277, (int )samplesperpixel);
3981   } else {   3981   } else {
3982     3982  
3983   }   3983   }
3984   if ((int )compression != 65535) {   3984   if ((int )compression != 65535) {
3985     TIFFSetField(out, (uint32 )259, (int )compression);   3985     TIFFSetField(out, (uint32 )259, (int )compression);
3986   } else {   3986   } else {
3987     tmp___3 = TIFFGetField(in, (uint32 )259, & compression);   3987     tmp___3 = TIFFGetField(in, (uint32 )259, & compression);
3988     if (tmp___3) {   3988     if (tmp___3) {
3989       TIFFSetField(out, (uint32 )259, (int )compression);   3989       TIFFSetField(out, (uint32 )259, (int )compression);
3990     } else {   3990     } else {
3991     3991  
3992     }   3992     }
3993   }   3993   }
3994   if ((int )compression == 7) {   3994   if ((int )compression == 7) {
3995     tmp___4 = TIFFGetField(in, (uint32 )259, & input_compression);   3995     tmp___4 = TIFFGetField(in, (uint32 )259, & input_compression);
3996     if (tmp___4) {   3996     if (tmp___4) {
3997       if ((int )input_compression == 7) {   3997       if ((int )input_compression == 7) {
3998         TIFFSetField(in, (uint32 )65538, 1);   3998         TIFFSetField(in, (uint32 )65538, 1);
3999       } else {   3999       } else {
4000     4000  
4001       }   4001       }
4002     } else {   4002     } else {
4003     4003  
4004     }   4004     }
4005     tmp___5 = TIFFGetField(in, (uint32 )262, & input_photometric);   4005     tmp___5 = TIFFGetField(in, (uint32 )262, & input_photometric);
4006     if (tmp___5) {   4006     if (tmp___5) {
4007       if ((int )input_photometric == 2) { <> 4007       if (in != 0) {
4008         if (jpegcolormode == 1) { = 4008         if (jpegcolormode == 1) {
4009           TIFFSetField(out, (uint32 )262, 6);   4009           TIFFSetField(out, (uint32 )262, 6);
4010         } else {   4010         } else {
4011           TIFFSetField(out, (uint32 )262, 2);   4011           TIFFSetField(out, (uint32 )262, 2);
4012         }   4012         }
4013       } else {   4013       } else {
4014         TIFFSetField(out, (uint32 )262, (int )input_photometric);   4014         TIFFSetField(out, (uint32 )262, (int )input_photometric);
4015       }   4015       }
4016     } else {   4016     } else {
4017     4017  
4018     }   4018     }
4019   } else   4019   } else
4020   if ((int )compression == 34676) {   4020   if ((int )compression == 34676) {
4021     goto _L;   4021     goto _L;
4022   } else   4022   } else
4023   if ((int )compression == 34677) {   4023   if ((int )compression == 34677) {
4024     _L: /* CIL Label */   4024     _L: /* CIL Label */
4025     if ((int )samplesperpixel == 1) {   4025     if ((int )samplesperpixel == 1) {
4026       tmp___6 = 32844;   4026       tmp___6 = 32844;
4027     } else {   4027     } else {
4028       tmp___6 = 32845;   4028       tmp___6 = 32845;
4029     }   4029     }
4030     TIFFSetField(out, (uint32 )262, tmp___6);   4030     TIFFSetField(out, (uint32 )262, tmp___6);
4031   } else {   4031   } else {
4032     cpTag(in, out, (uint16 )262, (uint16 )1, (TIFFDataType )3);   4032     cpTag(in, out, (uint16 )262, (uint16 )1, (TIFFDataType )3);
4033   }   4033   }
4034   if ((int )fillorder != 0) {   4034   if ((int )fillorder != 0) {
4035     TIFFSetField(out, (uint32 )266, (int )fillorder);   4035     TIFFSetField(out, (uint32 )266, (int )fillorder);
4036   } else {   4036   } else {
4037     cpTag(in, out, (uint16 )266, (uint16 )1, (TIFFDataType )3);   4037     cpTag(in, out, (uint16 )266, (uint16 )1, (TIFFDataType )3);
4038   }   4038   }
4039   TIFFGetFieldDefaulted(in, (uint32 )274, & orientation);   4039   TIFFGetFieldDefaulted(in, (uint32 )274, & orientation);
4040   switch ((int )orientation) {   4040   switch ((int )orientation) {
4041   case 7:   4041   case 7:
4042   case 3:   4042   case 3:
4043   tmp___7 = TIFFFileName(in);   4043   tmp___7 = TIFFFileName(in);
4044   TIFFWarning(tmp___7, "using bottom-left orientation");   4044   TIFFWarning(tmp___7, "using bottom-left orientation");
4045   orientation = (uint16 )4;   4045   orientation = (uint16 )4;
4046   case 4:   4046   case 4:
4047   case 8:   4047   case 8:
4048   break;   4048   break;
4049   default:   4049   default:
4050   case 6:   4050   case 6:
4051   case 2:   4051   case 2:
4052   tmp___8 = TIFFFileName(in);   4052   tmp___8 = TIFFFileName(in);
4053   TIFFWarning(tmp___8, "using top-left orientation");   4053   TIFFWarning(tmp___8, "using top-left orientation");
4054   orientation = (uint16 )1;   4054   orientation = (uint16 )1;
4055   case 1:   4055   case 1:
4056   case 5:   4056   case 5:
4057   break;   4057   break;
4058   }   4058   }
4059   TIFFSetField(out, (uint32 )274, (int )orientation);   4059   TIFFSetField(out, (uint32 )274, (int )orientation);
4060   if (outtiled == -1) {   4060   if (outtiled == -1) {
4061     outtiled = TIFFIsTiled(in);   4061     outtiled = TIFFIsTiled(in);
4062   } else {   4062   } else {
4063     4063  
4064   }   4064   }
4065   if (outtiled) {   4065   if (outtiled) {
4066     if (tilewidth == 4294967295U) {   4066     if (tilewidth == 4294967295U) {
4067       TIFFGetField(in, (uint32 )322, & tilewidth);   4067       TIFFGetField(in, (uint32 )322, & tilewidth);
4068     } else {   4068     } else {
4069     4069  
4070     }   4070     }
4071     if (tilelength == 4294967295U) {   4071     if (tilelength == 4294967295U) {
4072       TIFFGetField(in, (uint32 )323, & tilelength);   4072       TIFFGetField(in, (uint32 )323, & tilelength);
4073     } else {   4073     } else {
4074     4074  
4075     }   4075     }
4076     TIFFDefaultTileSize(out, & tilewidth, & tilelength);   4076     TIFFDefaultTileSize(out, & tilewidth, & tilelength);
4077     TIFFSetField(out, (uint32 )322, tilewidth);   4077     TIFFSetField(out, (uint32 )322, tilewidth);
4078     TIFFSetField(out, (uint32 )323, tilelength);   4078     TIFFSetField(out, (uint32 )323, tilelength);
4079   } else {   4079   } else {
4080     if (rowsperstrip == 0U) {   4080     if (rowsperstrip == 0U) {
4081       tmp___9 = TIFFGetField(in, (uint32 )278, & rowsperstrip);   4081       tmp___9 = TIFFGetField(in, (uint32 )278, & rowsperstrip);
4082       if (tmp___9) {   4082       if (tmp___9) {
4083     4083  
4084       } else {   4084       } else {
4085         rowsperstrip = TIFFDefaultStripSize(out, rowsperstrip);   4085         rowsperstrip = TIFFDefaultStripSize(out, rowsperstrip);
4086       }   4086       }
4087       if (rowsperstrip > length) {   4087       if (rowsperstrip > length) {
4088         if (rowsperstrip != 4294967295U) {   4088         if (rowsperstrip != 4294967295U) {
4089           rowsperstrip = length;   4089           rowsperstrip = length;
4090         } else {   4090         } else {
4091     4091  
4092         }   4092         }
4093       } else {   4093       } else {
4094     4094  
4095       }   4095       }
4096     } else   4096     } else
4097     if (rowsperstrip == 4294967295U) {   4097     if (rowsperstrip == 4294967295U) {
4098       rowsperstrip = length;   4098       rowsperstrip = length;
4099     } else {   4099     } else {
4100     4100  
4101     }   4101     }
4102     TIFFSetField(out, (uint32 )278, rowsperstrip);   4102     TIFFSetField(out, (uint32 )278, rowsperstrip);
4103   }   4103   }
4104   if ((int )config != 65535) {   4104   if ((int )config != 65535) {
4105     TIFFSetField(out, (uint32 )284, (int )config);   4105     TIFFSetField(out, (uint32 )284, (int )config);
4106   } else {   4106   } else {
4107     tmp___10 = TIFFGetField(in, (uint32 )284, & config);   4107     tmp___10 = TIFFGetField(in, (uint32 )284, & config);
4108     if (tmp___10) {   4108     if (tmp___10) {
4109       TIFFSetField(out, (uint32 )284, (int )config);   4109       TIFFSetField(out, (uint32 )284, (int )config);
4110     } else {   4110     } else {
4111     4111  
4112     }   4112     }
4113   }   4113   }
4114   if ((int )samplesperpixel <= 4) {   4114   if ((int )samplesperpixel <= 4) {
4115     cpTag(in, out, (uint16 )301, (uint16 )4, (TIFFDataType )3);   4115     cpTag(in, out, (uint16 )301, (uint16 )4, (TIFFDataType )3);
4116   } else {   4116   } else {
4117     4117  
4118   }   4118   }
4119   cpTag(in, out, (uint16 )320, (uint16 )4, (TIFFDataType )3);   4119   cpTag(in, out, (uint16 )320, (uint16 )4, (TIFFDataType )3);
4120   switch ((int )compression) {   4120   switch ((int )compression) {
4121   case 7:   4121   case 7:
4122   TIFFSetField(out, (uint32 )65537, quality);   4122   TIFFSetField(out, (uint32 )65537, quality);
4123   TIFFSetField(out, (uint32 )65538, jpegcolormode);   4123   TIFFSetField(out, (uint32 )65538, jpegcolormode);
4124   break;   4124   break;
4125   case 34661:   4125   case 34661:
4126   cpTag(in, out, (uint16 )34908, (uint16 )1, (TIFFDataType )4);   4126   cpTag(in, out, (uint16 )34908, (uint16 )1, (TIFFDataType )4);
4127   cpTag(in, out, (uint16 )34910, (uint16 )1, (TIFFDataType )4);   4127   cpTag(in, out, (uint16 )34910, (uint16 )1, (TIFFDataType )4);
4128   cpTag(in, out, (uint16 )34909, (uint16 )1, (TIFFDataType )2);   4128   cpTag(in, out, (uint16 )34909, (uint16 )1, (TIFFDataType )2);
4129   cpTag(in, out, (uint16 )34911, (uint16 )1, (TIFFDataType )2);   4129   cpTag(in, out, (uint16 )34911, (uint16 )1, (TIFFDataType )2);
4130   break;   4130   break;
4131   case 32946:   4131   case 32946:
4132   case 8:   4132   case 8:
4133   case 5:   4133   case 5:
4134   if ((int )predictor != 65535) {   4134   if ((int )predictor != 65535) {
4135     TIFFSetField(out, (uint32 )317, (int )predictor);   4135     TIFFSetField(out, (uint32 )317, (int )predictor);
4136   } else {   4136   } else {
4137     tmp___11 = TIFFGetField(in, (uint32 )317, & predictor);   4137     tmp___11 = TIFFGetField(in, (uint32 )317, & predictor);
4138     if (tmp___11) {   4138     if (tmp___11) {
4139       TIFFSetField(out, (uint32 )317, (int )predictor);   4139       TIFFSetField(out, (uint32 )317, (int )predictor);
4140     } else {   4140     } else {
4141     4141  
4142     }   4142     }
4143   }   4143   }
4144   break;   4144   break;
4145   case 4:   4145   case 4:
4146   case 3:   4146   case 3:
4147   if ((int )compression == 3) {   4147   if ((int )compression == 3) {
4148     if (g3opts != 4294967295U) {   4148     if (g3opts != 4294967295U) {
4149       TIFFSetField(out, (uint32 )292, g3opts);   4149       TIFFSetField(out, (uint32 )292, g3opts);
4150     } else {   4150     } else {
4151       tmp___12 = TIFFGetField(in, (uint32 )292, & g3opts);   4151       tmp___12 = TIFFGetField(in, (uint32 )292, & g3opts);
4152       if (tmp___12) {   4152       if (tmp___12) {
4153         TIFFSetField(out, (uint32 )292, g3opts);   4153         TIFFSetField(out, (uint32 )292, g3opts);
4154       } else {   4154       } else {
4155     4155  
4156       }   4156       }
4157     }   4157     }
4158   } else {   4158   } else {
4159     cpTag(in, out, (uint16 )293, (uint16 )1, (TIFFDataType )4);   4159     cpTag(in, out, (uint16 )293, (uint16 )1, (TIFFDataType )4);
4160   }   4160   }
4161   cpTag(in, out, (uint16 )326, (uint16 )1, (TIFFDataType )4);   4161   cpTag(in, out, (uint16 )326, (uint16 )1, (TIFFDataType )4);
4162   cpTag(in, out, (uint16 )327, (uint16 )1, (TIFFDataType )4);   4162   cpTag(in, out, (uint16 )327, (uint16 )1, (TIFFDataType )4);
4163   cpTag(in, out, (uint16 )328, (uint16 )1, (TIFFDataType )4);   4163   cpTag(in, out, (uint16 )328, (uint16 )1, (TIFFDataType )4);
4164   cpTag(in, out, (uint16 )34908, (uint16 )1, (TIFFDataType )4);   4164   cpTag(in, out, (uint16 )34908, (uint16 )1, (TIFFDataType )4);
4165   cpTag(in, out, (uint16 )34910, (uint16 )1, (TIFFDataType )4);   4165   cpTag(in, out, (uint16 )34910, (uint16 )1, (TIFFDataType )4);
4166   cpTag(in, out, (uint16 )34909, (uint16 )1, (TIFFDataType )2);   4166   cpTag(in, out, (uint16 )34909, (uint16 )1, (TIFFDataType )2);
4167   break;   4167   break;
4168   }   4168   }
4169   tmp___13 = TIFFGetField(in, (uint32 )34675, & len32, & data);   4169   tmp___13 = TIFFGetField(in, (uint32 )34675, & len32, & data);
4170   if (tmp___13) {   4170   if (tmp___13) {
4171     TIFFSetField(out, (uint32 )34675, len32, data);   4171     TIFFSetField(out, (uint32 )34675, len32, data);
4172   } else {   4172   } else {
4173     4173  
4174   }   4174   }
4175   tmp___19 = TIFFGetField(in, (uint32 )334, & ninks);   4175   tmp___19 = TIFFGetField(in, (uint32 )334, & ninks);
4176   if (tmp___19) {   4176   if (tmp___19) {
4177     TIFFSetField(out, (uint32 )334, (int )ninks);   4177     TIFFSetField(out, (uint32 )334, (int )ninks);
4178     tmp___18 = TIFFGetField(in, (uint32 )333, & inknames);   4178     tmp___18 = TIFFGetField(in, (uint32 )333, & inknames);
4179     if (tmp___18) {   4179     if (tmp___18) {
4180       tmp___14 = strlen(inknames);   4180       tmp___14 = strlen(inknames);
4181       inknameslen = (int )(tmp___14 + 1U);   4181       inknameslen = (int )(tmp___14 + 1U);
4182       cp = inknames;   4182       cp = inknames;
4183       while ((int )ninks > 1) {   4183       while ((int )ninks > 1) {
4184         tmp___15 = __rawmemchr((void const   *)cp, '\000');   4184         tmp___15 = __rawmemchr((void const   *)cp, '\000');
4185         cp = (char const   *)((char *)tmp___15);   4185         cp = (char const   *)((char *)tmp___15);
4186         cp ++;   4186         cp ++;
4187         tmp___17 = strlen(cp);   4187         tmp___17 = strlen(cp);
4188         inknameslen = (int )((size_t )inknameslen + (tmp___17 + 1U));   4188         inknameslen = (int )((size_t )inknameslen + (tmp___17 + 1U));
4189         ninks = (uint16 )((int )ninks - 1);   4189         ninks = (uint16 )((int )ninks - 1);
4190       }   4190       }
4191       TIFFSetField(out, (uint32 )333, inknameslen, inknames);   4191       TIFFSetField(out, (uint32 )333, inknameslen, inknames);
4192     } else {   4192     } else {
4193     4193  
4194     }   4194     }
4195   } else {   4195   } else {
4196     4196  
4197   }   4197   }
4198   tmp___21 = TIFFGetField(in, (uint32 )297, & pg0, & pg1);   4198   tmp___21 = TIFFGetField(in, (uint32 )297, & pg0, & pg1);
4199   if (tmp___21) {   4199   if (tmp___21) {
4200     if (pageNum < 0) {   4200     if (pageNum < 0) {
4201       TIFFSetField(out, (uint32 )297, (int )pg0, (int )pg1);   4201       TIFFSetField(out, (uint32 )297, (int )pg0, (int )pg1);
4202     } else {   4202     } else {
4203       tmp___20 = pageNum;   4203       tmp___20 = pageNum;
4204       pageNum ++;   4204       pageNum ++;
4205       TIFFSetField(out, (uint32 )297, tmp___20, 0);   4205       TIFFSetField(out, (uint32 )297, tmp___20, 0);
4206     }   4206     }
4207   } else {   4207   } else {
4208     4208  
4209   }   4209   }
4210   p = tags;   4210   p = tags;
4211   while ((unsigned int )p < (unsigned int )(& tags[sizeof(tags) / sizeof(tags[0])])) {   4211   while ((unsigned int )p < (unsigned int )(& tags[sizeof(tags) / sizeof(tags[0])])) {
4212     cpTag(in, out, p->tag, p->count, p->type);   4212     cpTag(in, out, p->tag, p->count, p->type);
4213     p ++;   4213     p ++;
4214   }   4214   }
4215   cf = pickCopyFunc(in, out, bitspersample, samplesperpixel);   4215   cf = pickCopyFunc(in, out, bitspersample, samplesperpixel);
4216   if (cf) {   4216   if (cf) {
4217     tmp___22 = (*cf)(in, out, length, width, samplesperpixel);   4217     tmp___22 = (*cf)(in, out, length, width, samplesperpixel);
4218     tmp___23 = tmp___22;   4218     tmp___23 = tmp___22;
4219   } else {   4219   } else {
4220     tmp___23 = 0;   4220     tmp___23 = 0;
4221   }   4221   }
4222   return (tmp___23);   4222   return (tmp___23);
4223 }   4223 }
4224 }   4224 }
4225 static int cpContig2ContigByRow(TIFF *in , TIFF *out , uint32 imagelength ,   4225 static int cpContig2ContigByRow(TIFF *in , TIFF *out , uint32 imagelength ,
4226                                 uint32 imagewidth , tsample_t spp )   4226                                 uint32 imagewidth , tsample_t spp )
4227 {   4227 {
4228   tdata_t buf ;   4228   tdata_t buf ;
4229   tmsize_t tmp ;   4229   tmsize_t tmp ;
4230   void *tmp___0 ;   4230   void *tmp___0 ;
4231   uint32 row ;   4231   uint32 row ;
4232   char const   *tmp___1 ;   4232   char const   *tmp___1 ;
4233   int tmp___2 ;   4233   int tmp___2 ;
4234   char const   *tmp___3 ;   4234   char const   *tmp___3 ;
4235   int tmp___4 ;   4235   int tmp___4 ;
4236     4236  
4237   {   4237   {
4238   tmp = TIFFScanlineSize(in);   4238   tmp = TIFFScanlineSize(in);
4239   tmp___0 = _TIFFmalloc(tmp);   4239   tmp___0 = _TIFFmalloc(tmp);
4240   buf = tmp___0;   4240   buf = tmp___0;
4241   row = (uint32 )0;   4241   row = (uint32 )0;
4242   while (row < imagelength) {   4242   while (row < imagelength) {
4243     tmp___2 = TIFFReadScanline(in, buf, row, (uint16 )0);   4243     tmp___2 = TIFFReadScanline(in, buf, row, (uint16 )0);
4244     if (tmp___2 < 0) {   4244     if (tmp___2 < 0) {
4245       if (! ignore) {   4245       if (! ignore) {
4246         tmp___1 = TIFFFileName(in);   4246         tmp___1 = TIFFFileName(in);
4247         TIFFError(tmp___1, "Error, can\'t read scanline %lu",   4247         TIFFError(tmp___1, "Error, can\'t read scanline %lu",
4248                   (unsigned long )row);   4248                   (unsigned long )row);
4249         goto bad;   4249         goto bad;
4250       } else {   4250       } else {
4251     4251  
4252       }   4252       }
4253     } else {   4253     } else {
4254     4254  
4255     }   4255     }
4256     tmp___4 = TIFFWriteScanline(out, buf, row, (uint16 )0);   4256     tmp___4 = TIFFWriteScanline(out, buf, row, (uint16 )0);
4257     if (tmp___4 < 0) {   4257     if (tmp___4 < 0) {
4258       tmp___3 = TIFFFileName(out);   4258       tmp___3 = TIFFFileName(out);
4259       TIFFError(tmp___3, "Error, can\'t write scanline %lu", (unsigned long )row);   4259       TIFFError(tmp___3, "Error, can\'t write scanline %lu", (unsigned long )row);
4260       goto bad;   4260       goto bad;
4261     } else {   4261     } else {
4262     4262  
4263     }   4263     }
4264     row ++;   4264     row ++;
4265   }   4265   }
4266   _TIFFfree(buf);   4266   _TIFFfree(buf);
4267   return (1);   4267   return (1);
4268   bad:   4268   bad:
4269   _TIFFfree(buf);   4269   _TIFFfree(buf);
4270   return (0);   4270   return (0);
4271 }   4271 }
4272 }   4272 }
4273 static void subtract8(void *i , void *b , uint32 pixels )   4273 static void subtract8(void *i , void *b , uint32 pixels )
4274 {   4274 {
4275   uint8 *image ;   4275   uint8 *image ;
4276   uint8 *bias___0 ;   4276   uint8 *bias___0 ;
4277   uint32 tmp ;   4277   uint32 tmp ;
4278     4278  
4279   {   4279   {
4280   image = (uint8 *)i;   4280   image = (uint8 *)i;
4281   bias___0 = (uint8 *)b;   4281   bias___0 = (uint8 *)b;
4282   while (1) {   4282   while (1) {
4283     tmp = pixels;   4283     tmp = pixels;
4284     pixels --;   4284     pixels --;
4285     if (tmp) {   4285     if (tmp) {
4286     4286  
4287     } else {   4287     } else {
4288       break;   4288       break;
4289     }   4289     }
4290     if ((int )*image > (int )*bias___0) {   4290     if ((int )*image > (int )*bias___0) {
4291       *image = (uint8 )((int )*image - (int )*bias___0);   4291       *image = (uint8 )((int )*image - (int )*bias___0);
4292     } else {   4292     } else {
4293       *image = (uint8 )0;   4293       *image = (uint8 )0;
4294     }   4294     }
4295     image ++;   4295     image ++;
4296     bias___0 ++;   4296     bias___0 ++;
4297   }   4297   }
4298   return;   4298   return;
4299 }   4299 }
4300 }   4300 }
4301 static void subtract16(void *i , void *b , uint32 pixels )   4301 static void subtract16(void *i , void *b , uint32 pixels )
4302 {   4302 {
4303   uint16 *image ;   4303   uint16 *image ;
4304   uint16 *bias___0 ;   4304   uint16 *bias___0 ;
4305   uint32 tmp ;   4305   uint32 tmp ;
4306     4306  
4307   {   4307   {
4308   image = (uint16 *)i;   4308   image = (uint16 *)i;
4309   bias___0 = (uint16 *)b;   4309   bias___0 = (uint16 *)b;
4310   while (1) {   4310   while (1) {
4311     tmp = pixels;   4311     tmp = pixels;
4312     pixels --;   4312     pixels --;
4313     if (tmp) {   4313     if (tmp) {
4314     4314  
4315     } else {   4315     } else {
4316       break;   4316       break;
4317     }   4317     }
4318     if ((int )*image > (int )*bias___0) {   4318     if ((int )*image > (int )*bias___0) {
4319       *image = (uint16 )((int )*image - (int )*bias___0);   4319       *image = (uint16 )((int )*image - (int )*bias___0);
4320     } else {   4320     } else {
4321       *image = (uint16 )0;   4321       *image = (uint16 )0;
4322     }   4322     }
4323     image ++;   4323     image ++;
4324     bias___0 ++;   4324     bias___0 ++;
4325   }   4325   }
4326   return;   4326   return;
4327 }   4327 }
4328 }   4328 }
4329 static void subtract32(void *i , void *b , uint32 pixels )   4329 static void subtract32(void *i , void *b , uint32 pixels )
4330 {   4330 {
4331   uint32 *image ;   4331   uint32 *image ;
4332   uint32 *bias___0 ;   4332   uint32 *bias___0 ;
4333   uint32 tmp ;   4333   uint32 tmp ;
4334     4334  
4335   {   4335   {
4336   image = (uint32 *)i;   4336   image = (uint32 *)i;
4337   bias___0 = (uint32 *)b;   4337   bias___0 = (uint32 *)b;
4338   while (1) {   4338   while (1) {
4339     tmp = pixels;   4339     tmp = pixels;
4340     pixels --;   4340     pixels --;
4341     if (tmp) {   4341     if (tmp) {
4342     4342  
4343     } else {   4343     } else {
4344       break;   4344       break;
4345     }   4345     }
4346     if (*image > *bias___0) {   4346     if (*image > *bias___0) {
4347       *image -= *bias___0;   4347       *image -= *bias___0;
4348     } else {   4348     } else {
4349       *image = (uint32 )0;   4349       *image = (uint32 )0;
4350     }   4350     }
4351     image ++;   4351     image ++;
4352     bias___0 ++;   4352     bias___0 ++;
4353   }   4353   }
4354   return;   4354   return;
4355 }   4355 }
4356 }   4356 }
4357 static biasFn *lineSubtractFn(unsigned int bits )   4357 static biasFn *lineSubtractFn(unsigned int bits )
4358 {   4358 {
4359     4359  
4360     4360  
4361   {   4361   {
4362   switch (bits) {   4362   switch (bits) {
4363   case 8U:   4363   case 8U:
4364   return (& subtract8);   4364   return (& subtract8);
4365   case 16U:   4365   case 16U:
4366   return (& subtract16);   4366   return (& subtract16);
4367   case 32U:   4367   case 32U:
4368   return (& subtract32);   4368   return (& subtract32);
4369   }   4369   }
4370   return ((biasFn *)((void *)0));   4370   return ((biasFn *)((void *)0));
4371 }   4371 }
4372 }   4372 }
4373 static int cpBiasedContig2Contig(TIFF *in , TIFF *out , uint32 imagelength ,   4373 static int cpBiasedContig2Contig(TIFF *in , TIFF *out , uint32 imagelength ,
4374                                  uint32 imagewidth , tsample_t spp )   4374                                  uint32 imagewidth , tsample_t spp )
4375 {   4375 {
4376   tsize_t biasSize ;   4376   tsize_t biasSize ;
4377   tmsize_t tmp ;   4377   tmsize_t tmp ;
4378   tsize_t bufSize ;   4378   tsize_t bufSize ;
4379   tmsize_t tmp___0 ;   4379   tmsize_t tmp___0 ;
4380   tdata_t buf ;   4380   tdata_t buf ;
4381   tdata_t biasBuf ;   4381   tdata_t biasBuf ;
4382   uint32 biasWidth ;   4382   uint32 biasWidth ;
4383   uint32 biasLength ;   4383   uint32 biasLength ;
4384   uint16 sampleBits ;   4384   uint16 sampleBits ;
4385   biasFn *subtractLine ;   4385   biasFn *subtractLine ;
4386   uint32 row ;   4386   uint32 row ;
4387   char const   *tmp___1 ;   4387   char const   *tmp___1 ;
4388   int tmp___2 ;   4388   int tmp___2 ;
4389   char const   *tmp___3 ;   4389   char const   *tmp___3 ;
4390   int tmp___4 ;   4390   int tmp___4 ;
4391   char const   *tmp___5 ;   4391   char const   *tmp___5 ;
4392   int tmp___6 ;   4392   int tmp___6 ;
4393   uint16 tmp___7 ;   4393   uint16 tmp___7 ;
4394   char const   *tmp___8 ;   4394   char const   *tmp___8 ;
4395   uint16 tmp___9 ;   4395   uint16 tmp___9 ;
4396   char const   *tmp___10 ;   4396   char const   *tmp___10 ;
4397   uint16 tmp___11 ;   4397   uint16 tmp___11 ;
4398   char const   *tmp___12 ;   4398   char const   *tmp___12 ;
4399   char const   *tmp___13 ;   4399   char const   *tmp___13 ;
4400   uint16 tmp___14 ;   4400   uint16 tmp___14 ;
4401   char const   *tmp___15 ;   4401   char const   *tmp___15 ;
4402   char const   *tmp___16 ;   4402   char const   *tmp___16 ;
4403     4403  
4404   {   4404   {
4405   if ((int )spp == 1) {   4405   if ((int )spp == 1) {
4406     tmp = TIFFScanlineSize(bias);   4406     tmp = TIFFScanlineSize(bias);
4407     biasSize = tmp;   4407     biasSize = tmp;
4408     tmp___0 = TIFFScanlineSize(in);   4408     tmp___0 = TIFFScanlineSize(in);
4409     bufSize = tmp___0;   4409     bufSize = tmp___0;
4410     biasWidth = (uint32 )0;   4410     biasWidth = (uint32 )0;
4411     biasLength = (uint32 )0;   4411     biasLength = (uint32 )0;
4412     TIFFGetField(bias, (uint32 )256, & biasWidth);   4412     TIFFGetField(bias, (uint32 )256, & biasWidth);
4413     TIFFGetField(bias, (uint32 )257, & biasLength);   4413     TIFFGetField(bias, (uint32 )257, & biasLength);
4414     if (biasSize == bufSize) {   4414     if (biasSize == bufSize) {
4415       if (imagelength == biasLength) {   4415       if (imagelength == biasLength) {
4416         if (imagewidth == biasWidth) {   4416         if (imagewidth == biasWidth) {
4417           sampleBits = (uint16 )0;   4417           sampleBits = (uint16 )0;
4418           TIFFGetField(in, (uint32 )258, & sampleBits);   4418           TIFFGetField(in, (uint32 )258, & sampleBits);
4419           subtractLine = lineSubtractFn((unsigned int )sampleBits);   4419           subtractLine = lineSubtractFn((unsigned int )sampleBits);
4420           if (subtractLine) {   4420           if (subtractLine) {
4421             buf = _TIFFmalloc(bufSize);   4421             buf = _TIFFmalloc(bufSize);
4422             biasBuf = _TIFFmalloc(bufSize);   4422             biasBuf = _TIFFmalloc(bufSize);
4423             row = (uint32 )0;   4423             row = (uint32 )0;
4424             while (row < imagelength) {   4424             while (row < imagelength) {
4425               tmp___2 = TIFFReadScanline(in, buf, row, (uint16 )0);   4425               tmp___2 = TIFFReadScanline(in, buf, row, (uint16 )0);
4426               if (tmp___2 < 0) {   4426               if (tmp___2 < 0) {
4427                 if (! ignore) {   4427                 if (! ignore) {
4428                   tmp___1 = TIFFFileName(in);   4428                   tmp___1 = TIFFFileName(in);
4429                   TIFFError(tmp___1, "Error, can\'t read scanline %lu",   4429                   TIFFError(tmp___1, "Error, can\'t read scanline %lu",
4430                             (unsigned long )row);   4430                             (unsigned long )row);
4431                   goto bad;   4431                   goto bad;
4432                 } else {   4432                 } else {
4433     4433  
4434                 }   4434                 }
4435               } else {   4435               } else {
4436     4436  
4437               }   4437               }
4438               tmp___4 = TIFFReadScanline(bias, biasBuf, row, (uint16 )0);   4438               tmp___4 = TIFFReadScanline(bias, biasBuf, row, (uint16 )0);
4439               if (tmp___4 < 0) {   4439               if (tmp___4 < 0) {
4440                 if (! ignore) {   4440                 if (! ignore) {
4441                   tmp___3 = TIFFFileName(in);   4441                   tmp___3 = TIFFFileName(in);
4442                   TIFFError(tmp___3, "Error, can\'t read biased scanline %lu",   4442                   TIFFError(tmp___3, "Error, can\'t read biased scanline %lu",
4443                             (unsigned long )row);   4443                             (unsigned long )row);
4444                   goto bad;   4444                   goto bad;
4445                 } else {   4445                 } else {
4446     4446  
4447                 }   4447                 }
4448               } else {   4448               } else {
4449     4449  
4450               }   4450               }
4451               (*subtractLine)(buf, biasBuf, imagewidth);   4451               (*subtractLine)(buf, biasBuf, imagewidth);
4452               tmp___6 = TIFFWriteScanline(out, buf, row, (uint16 )0);   4452               tmp___6 = TIFFWriteScanline(out, buf, row, (uint16 )0);
4453               if (tmp___6 < 0) {   4453               if (tmp___6 < 0) {
4454                 tmp___5 = TIFFFileName(out);   4454                 tmp___5 = TIFFFileName(out);
4455                 TIFFError(tmp___5, "Error, can\'t write scanline %lu",   4455                 TIFFError(tmp___5, "Error, can\'t write scanline %lu",
4456                           (unsigned long )row);   4456                           (unsigned long )row);
4457                 goto bad;   4457                 goto bad;
4458               } else {   4458               } else {
4459     4459  
4460               }   4460               }
4461               row ++;   4461               row ++;
4462             }   4462             }
4463             _TIFFfree(buf);   4463             _TIFFfree(buf);
4464             _TIFFfree(biasBuf);   4464             _TIFFfree(biasBuf);
4465             tmp___7 = TIFFCurrentDirectory(bias);   4465             tmp___7 = TIFFCurrentDirectory(bias);
4466             TIFFSetDirectory(bias, tmp___7);   4466             TIFFSetDirectory(bias, tmp___7);
4467             return (1);   4467             return (1);
4468             bad:   4468             bad:
4469             _TIFFfree(buf);   4469             _TIFFfree(buf);
4470             _TIFFfree(biasBuf);   4470             _TIFFfree(biasBuf);
4471             return (0);   4471             return (0);
4472           } else {   4472           } else {
4473             tmp___8 = TIFFFileName(in);   4473             tmp___8 = TIFFFileName(in);
4474             TIFFError(tmp___8, "No support for biasing %d bit pixels\n",   4474             TIFFError(tmp___8, "No support for biasing %d bit pixels\n",
4475                       (int )sampleBits);   4475                       (int )sampleBits);
4476             return (0);   4476             return (0);
4477           }   4477           }
4478         } else {   4478         } else {
4479     4479  
4480         }   4480         }
4481       } else {   4481       } else {
4482     4482  
4483       }   4483       }
4484     } else {   4484     } else {
4485     4485  
4486     }   4486     }
4487     tmp___9 = TIFFCurrentDirectory(in);   4487     tmp___9 = TIFFCurrentDirectory(in);
4488     tmp___10 = TIFFFileName(in);   4488     tmp___10 = TIFFFileName(in);
4489     tmp___11 = TIFFCurrentDirectory(bias);   4489     tmp___11 = TIFFCurrentDirectory(bias);
4490     tmp___12 = TIFFFileName(bias);   4490     tmp___12 = TIFFFileName(bias);
4491     tmp___13 = TIFFFileName(in);   4491     tmp___13 = TIFFFileName(in);
4492     TIFFError(tmp___13, "Bias image %s,%d\nis not the same size as %s,%d\n",   4492     TIFFError(tmp___13, "Bias image %s,%d\nis not the same size as %s,%d\n",
4493               tmp___12, (int )tmp___11, tmp___10, (int )tmp___9);   4493               tmp___12, (int )tmp___11, tmp___10, (int )tmp___9);
4494     return (0);   4494     return (0);
4495   } else {   4495   } else {
4496     tmp___14 = TIFFCurrentDirectory(in);   4496     tmp___14 = TIFFCurrentDirectory(in);
4497     tmp___15 = TIFFFileName(in);   4497     tmp___15 = TIFFFileName(in);
4498     tmp___16 = TIFFFileName(in);   4498     tmp___16 = TIFFFileName(in);
4499     TIFFError(tmp___16, "Can\'t bias %s,%d as it has >1 Sample/Pixel\n",   4499     TIFFError(tmp___16, "Can\'t bias %s,%d as it has >1 Sample/Pixel\n",
4500               tmp___15, (int )tmp___14);   4500               tmp___15, (int )tmp___14);
4501     return (0);   4501     return (0);
4502   }   4502   }
4503 }   4503 }
4504 }   4504 }
4505 static int cpDecodedStrips(TIFF *in , TIFF *out , uint32 imagelength ,   4505 static int cpDecodedStrips(TIFF *in , TIFF *out , uint32 imagelength ,
4506                            uint32 imagewidth , tsample_t spp )   4506                            uint32 imagewidth , tsample_t spp )
4507 {   4507 {
4508   tsize_t stripsize ;   4508   tsize_t stripsize ;
4509   tmsize_t tmp ;   4509   tmsize_t tmp ;
4510   tdata_t buf ;   4510   tdata_t buf ;
4511   void *tmp___0 ;   4511   void *tmp___0 ;
4512   tstrip_t s ;   4512   tstrip_t s ;
4513   tstrip_t ns ;   4513   tstrip_t ns ;
4514   uint32 tmp___1 ;   4514   uint32 tmp___1 ;
4515   uint32 row ;   4515   uint32 row ;
4516   tsize_t cc ;   4516   tsize_t cc ;
4517   tmsize_t tmp___2 ;   4517   tmsize_t tmp___2 ;
4518   tmsize_t tmp___3 ;   4518   tmsize_t tmp___3 ;
4519   char const   *tmp___4 ;   4519   char const   *tmp___4 ;
4520   tmsize_t tmp___5 ;   4520   tmsize_t tmp___5 ;
4521   char const   *tmp___6 ;   4521   char const   *tmp___6 ;
4522   tmsize_t tmp___7 ;   4522   tmsize_t tmp___7 ;
4523   char const   *tmp___8 ;   4523   char const   *tmp___8 ;
4524     4524  
4525   {   4525   {
4526   tmp = TIFFStripSize(in);   4526   tmp = TIFFStripSize(in);
4527   stripsize = tmp;   4527   stripsize = tmp;
4528   tmp___0 = _TIFFmalloc(stripsize);   4528   tmp___0 = _TIFFmalloc(stripsize);
4529   buf = tmp___0;   4529   buf = tmp___0;
4530   if (buf) {   4530   if (buf) {
4531     tmp___1 = TIFFNumberOfStrips(in);   4531     tmp___1 = TIFFNumberOfStrips(in);
4532     ns = tmp___1;   4532     ns = tmp___1;
4533     row = (uint32 )0;   4533     row = (uint32 )0;
4534     s = (tstrip_t )0;   4534     s = (tstrip_t )0;
4535     while (s < ns) {   4535     while (s < ns) {
4536       if (row + rowsperstrip > imagelength) {   4536       if (row + rowsperstrip > imagelength) {
4537         tmp___2 = TIFFVStripSize(in, imagelength - row);   4537         tmp___2 = TIFFVStripSize(in, imagelength - row);
4538         tmp___3 = tmp___2;   4538         tmp___3 = tmp___2;
4539       } else {   4539       } else {
4540         tmp___3 = stripsize;   4540         tmp___3 = stripsize;
4541       }   4541       }
4542       cc = tmp___3;   4542       cc = tmp___3;
4543       tmp___5 = TIFFReadEncodedStrip(in, s, buf, cc);   4543       tmp___5 = TIFFReadEncodedStrip(in, s, buf, cc);
4544       if (tmp___5 < 0L) {   4544       if (tmp___5 < 0L) {
4545         if (! ignore) {   4545         if (! ignore) {
4546           tmp___4 = TIFFFileName(in);   4546           tmp___4 = TIFFFileName(in);
4547           TIFFError(tmp___4, "Error, can\'t read strip %lu", (unsigned long )s);   4547           TIFFError(tmp___4, "Error, can\'t read strip %lu", (unsigned long )s);
4548           goto bad;   4548           goto bad;
4549         } else {   4549         } else {
4550     4550  
4551         }   4551         }
4552       } else {   4552       } else {
4553     4553  
4554       }   4554       }
4555       tmp___7 = TIFFWriteEncodedStrip(out, s, buf, cc);   4555       tmp___7 = TIFFWriteEncodedStrip(out, s, buf, cc);
4556       if (tmp___7 < 0L) {   4556       if (tmp___7 < 0L) {
4557         tmp___6 = TIFFFileName(out);   4557         tmp___6 = TIFFFileName(out);
4558         TIFFError(tmp___6, "Error, can\'t write strip %lu", (unsigned long )s);   4558         TIFFError(tmp___6, "Error, can\'t write strip %lu", (unsigned long )s);
4559         goto bad;   4559         goto bad;
4560       } else {   4560       } else {
4561     4561  
4562       }   4562       }
4563       row += rowsperstrip;   4563       row += rowsperstrip;
4564       s ++;   4564       s ++;
4565     }   4565     }
4566     _TIFFfree(buf);   4566     _TIFFfree(buf);
4567     return (1);   4567     return (1);
4568   } else {   4568   } else {
4569     tmp___8 = TIFFFileName(in);   4569     tmp___8 = TIFFFileName(in);
4570     TIFFError(tmp___8,   4570     TIFFError(tmp___8,
4571               "Error, can\'t allocate memory buffer of size %lu to read strips",   4571               "Error, can\'t allocate memory buffer of size %lu to read strips",
4572               (unsigned long )stripsize);   4572               (unsigned long )stripsize);
4573     return (0);   4573     return (0);
4574   }   4574   }
4575   bad:   4575   bad:
4576   _TIFFfree(buf);   4576   _TIFFfree(buf);
4577   return (0);   4577   return (0);
4578 }   4578 }
4579 }   4579 }
4580 static int cpSeparate2SeparateByRow(TIFF *in , TIFF *out , uint32 imagelength ,   4580 static int cpSeparate2SeparateByRow(TIFF *in , TIFF *out , uint32 imagelength ,
4581                                     uint32 imagewidth , tsample_t spp )   4581                                     uint32 imagewidth , tsample_t spp )
4582 {   4582 {
4583   tdata_t buf ;   4583   tdata_t buf ;
4584   tmsize_t tmp ;   4584   tmsize_t tmp ;
4585   void *tmp___0 ;   4585   void *tmp___0 ;
4586   uint32 row ;   4586   uint32 row ;
4587   tsample_t s ;   4587   tsample_t s ;
4588   char const   *tmp___1 ;   4588   char const   *tmp___1 ;
4589   int tmp___2 ;   4589   int tmp___2 ;
4590   char const   *tmp___3 ;   4590   char const   *tmp___3 ;
4591   int tmp___4 ;   4591   int tmp___4 ;
4592     4592  
4593   {   4593   {
4594   tmp = TIFFScanlineSize(in);   4594   tmp = TIFFScanlineSize(in);
4595   tmp___0 = _TIFFmalloc(tmp);   4595   tmp___0 = _TIFFmalloc(tmp);
4596   buf = tmp___0;   4596   buf = tmp___0;
4597   s = (tsample_t )0;   4597   s = (tsample_t )0;
4598   while ((int )s < (int )spp) {   4598   while ((int )s < (int )spp) {
4599     row = (uint32 )0;   4599     row = (uint32 )0;
4600     while (row < imagelength) {   4600     while (row < imagelength) {
4601       tmp___2 = TIFFReadScanline(in, buf, row, s);   4601       tmp___2 = TIFFReadScanline(in, buf, row, s);
4602       if (tmp___2 < 0) {   4602       if (tmp___2 < 0) {
4603         if (! ignore) {   4603         if (! ignore) {
4604           tmp___1 = TIFFFileName(in);   4604           tmp___1 = TIFFFileName(in);
4605           TIFFError(tmp___1, "Error, can\'t read scanline %lu",   4605           TIFFError(tmp___1, "Error, can\'t read scanline %lu",
4606                     (unsigned long )row);   4606                     (unsigned long )row);
4607           goto bad;   4607           goto bad;
4608         } else {   4608         } else {
4609     4609  
4610         }   4610         }
4611       } else {   4611       } else {
4612     4612  
4613       }   4613       }
4614       tmp___4 = TIFFWriteScanline(out, buf, row, s);   4614       tmp___4 = TIFFWriteScanline(out, buf, row, s);
4615       if (tmp___4 < 0) {   4615       if (tmp___4 < 0) {
4616         tmp___3 = TIFFFileName(out);   4616         tmp___3 = TIFFFileName(out);
4617         TIFFError(tmp___3, "Error, can\'t write scanline %lu",   4617         TIFFError(tmp___3, "Error, can\'t write scanline %lu",
4618                   (unsigned long )row);   4618                   (unsigned long )row);
4619         goto bad;   4619         goto bad;
4620       } else {   4620       } else {
4621     4621  
4622       }   4622       }
4623       row ++;   4623       row ++;
4624     }   4624     }
4625     s = (tsample_t )((int )s + 1);   4625     s = (tsample_t )((int )s + 1);
4626   }   4626   }
4627   _TIFFfree(buf);   4627   _TIFFfree(buf);
4628   return (1);   4628   return (1);
4629   bad:   4629   bad:
4630   _TIFFfree(buf);   4630   _TIFFfree(buf);
4631   return (0);   4631   return (0);
4632 }   4632 }
4633 }   4633 }
4634 static int cpContig2SeparateByRow(TIFF *in , TIFF *out , uint32 imagelength ,   4634 static int cpContig2SeparateByRow(TIFF *in , TIFF *out , uint32 imagelength ,
4635                                   uint32 imagewidth , tsample_t spp )   4635                                   uint32 imagewidth , tsample_t spp )
4636 {   4636 {
4637   tdata_t inbuf ;   4637   tdata_t inbuf ;
4638   tmsize_t tmp ;   4638   tmsize_t tmp ;
4639   void *tmp___0 ;   4639   void *tmp___0 ;
4640   tdata_t outbuf ;   4640   tdata_t outbuf ;
4641   tmsize_t tmp___1 ;   4641   tmsize_t tmp___1 ;
4642   void *tmp___2 ;   4642   void *tmp___2 ;
4643   register uint8 *inp ;   4643   register uint8 *inp ;
4644   register uint8 *outp ;   4644   register uint8 *outp ;
4645   register uint32 n ;   4645   register uint32 n ;
4646   uint32 row ;   4646   uint32 row ;
4647   tsample_t s ;   4647   tsample_t s ;
4648   char const   *tmp___3 ;   4648   char const   *tmp___3 ;
4649   int tmp___4 ;   4649   int tmp___4 ;
4650   uint8 *tmp___5 ;   4650   uint8 *tmp___5 ;
4651   uint32 tmp___6 ;   4651   uint32 tmp___6 ;
4652   char const   *tmp___7 ;   4652   char const   *tmp___7 ;
4653   int tmp___8 ;   4653   int tmp___8 ;
4654     4654  
4655   {   4655   {
4656   tmp = TIFFScanlineSize(in);   4656   tmp = TIFFScanlineSize(in);
4657   tmp___0 = _TIFFmalloc(tmp);   4657   tmp___0 = _TIFFmalloc(tmp);
4658   inbuf = tmp___0;   4658   inbuf = tmp___0;
4659   tmp___1 = TIFFScanlineSize(out);   4659   tmp___1 = TIFFScanlineSize(out);
4660   tmp___2 = _TIFFmalloc(tmp___1);   4660   tmp___2 = _TIFFmalloc(tmp___1);
4661   outbuf = tmp___2;   4661   outbuf = tmp___2;
4662   s = (tsample_t )0;   4662   s = (tsample_t )0;
4663   while ((int )s < (int )spp) {   4663   while ((int )s < (int )spp) {
4664     row = (uint32 )0;   4664     row = (uint32 )0;
4665     while (row < imagelength) {   4665     while (row < imagelength) {
4666       tmp___4 = TIFFReadScanline(in, inbuf, row, (uint16 )0);   4666       tmp___4 = TIFFReadScanline(in, inbuf, row, (uint16 )0);
4667       if (tmp___4 < 0) {   4667       if (tmp___4 < 0) {
4668         if (! ignore) {   4668         if (! ignore) {
4669           tmp___3 = TIFFFileName(in);   4669           tmp___3 = TIFFFileName(in);
4670           TIFFError(tmp___3, "Error, can\'t read scanline %lu",   4670           TIFFError(tmp___3, "Error, can\'t read scanline %lu",
4671                     (unsigned long )row);   4671                     (unsigned long )row);
4672           goto bad;   4672           goto bad;
4673         } else {   4673         } else {
4674     4674  
4675         }   4675         }
4676       } else {   4676       } else {
4677     4677  
4678       }   4678       }
4679       inp = (uint8 *)inbuf + (int )s;   4679       inp = (uint8 *)inbuf + (int )s;
4680       outp = (uint8 *)outbuf;   4680       outp = (uint8 *)outbuf;
4681       n = imagewidth;   4681       n = imagewidth;
4682       while (1) {   4682       while (1) {
4683         tmp___6 = n;   4683         tmp___6 = n;
4684         n --;   4684         n --;
4685         if (tmp___6 > 0U) {   4685         if (tmp___6 > 0U) {
4686     4686  
4687         } else {   4687         } else {
4688           break;   4688           break;
4689         }   4689         }
4690         tmp___5 = outp;   4690         tmp___5 = outp;
4691         outp ++;   4691         outp ++;
4692         *tmp___5 = *inp;   4692         *tmp___5 = *inp;
4693         inp += (int )spp;   4693         inp += (int )spp;
4694       }   4694       }
4695       tmp___8 = TIFFWriteScanline(out, outbuf, row, s);   4695       tmp___8 = TIFFWriteScanline(out, outbuf, row, s);
4696       if (tmp___8 < 0) {   4696       if (tmp___8 < 0) {
4697         tmp___7 = TIFFFileName(out);   4697         tmp___7 = TIFFFileName(out);
4698         TIFFError(tmp___7, "Error, can\'t write scanline %lu",   4698         TIFFError(tmp___7, "Error, can\'t write scanline %lu",
4699                   (unsigned long )row);   4699                   (unsigned long )row);
4700         goto bad;   4700         goto bad;
4701       } else {   4701       } else {
4702     4702  
4703       }   4703       }
4704       row ++;   4704       row ++;
4705     }   4705     }
4706     s = (tsample_t )((int )s + 1);   4706     s = (tsample_t )((int )s + 1);
4707   }   4707   }
4708   if (inbuf) {   4708   if (inbuf) {
4709     _TIFFfree(inbuf);   4709     _TIFFfree(inbuf);
4710   } else {   4710   } else {
4711     4711  
4712   }   4712   }
4713   if (outbuf) {   4713   if (outbuf) {
4714     _TIFFfree(outbuf);   4714     _TIFFfree(outbuf);
4715   } else {   4715   } else {
4716     4716  
4717   }   4717   }
4718   return (1);   4718   return (1);
4719   bad:   4719   bad:
4720   if (inbuf) {   4720   if (inbuf) {
4721     _TIFFfree(inbuf);   4721     _TIFFfree(inbuf);
4722   } else {   4722   } else {
4723     4723  
4724   }   4724   }
4725   if (outbuf) {   4725   if (outbuf) {
4726     _TIFFfree(outbuf);   4726     _TIFFfree(outbuf);
4727   } else {   4727   } else {
4728     4728  
4729   }   4729   }
4730   return (0);   4730   return (0);
4731 }   4731 }
4732 }   4732 }
4733 static int cpSeparate2ContigByRow(TIFF *in , TIFF *out , uint32 imagelength ,   4733 static int cpSeparate2ContigByRow(TIFF *in , TIFF *out , uint32 imagelength ,
4734                                   uint32 imagewidth , tsample_t spp )   4734                                   uint32 imagewidth , tsample_t spp )
4735 {   4735 {
4736   tdata_t inbuf ;   4736   tdata_t inbuf ;
4737   tmsize_t tmp ;   4737   tmsize_t tmp ;
4738   void *tmp___0 ;   4738   void *tmp___0 ;
4739   tdata_t outbuf ;   4739   tdata_t outbuf ;
4740   tmsize_t tmp___1 ;   4740   tmsize_t tmp___1 ;
4741   void *tmp___2 ;   4741   void *tmp___2 ;
4742   register uint8 *inp ;   4742   register uint8 *inp ;
4743   register uint8 *outp ;   4743   register uint8 *outp ;
4744   register uint32 n ;   4744   register uint32 n ;
4745   uint32 row ;   4745   uint32 row ;
4746   tsample_t s ;   4746   tsample_t s ;
4747   char const   *tmp___3 ;   4747   char const   *tmp___3 ;
4748   int tmp___4 ;   4748   int tmp___4 ;
4749   uint8 *tmp___5 ;   4749   uint8 *tmp___5 ;
4750   uint32 tmp___6 ;   4750   uint32 tmp___6 ;
4751   char const   *tmp___7 ;   4751   char const   *tmp___7 ;
4752   int tmp___8 ;   4752   int tmp___8 ;
4753     4753  
4754   {   4754   {
4755   tmp = TIFFScanlineSize(in);   4755   tmp = TIFFScanlineSize(in);
4756   tmp___0 = _TIFFmalloc(tmp);   4756   tmp___0 = _TIFFmalloc(tmp);
4757   inbuf = tmp___0;   4757   inbuf = tmp___0;
4758   tmp___1 = TIFFScanlineSize(out);   4758   tmp___1 = TIFFScanlineSize(out);
4759   tmp___2 = _TIFFmalloc(tmp___1);   4759   tmp___2 = _TIFFmalloc(tmp___1);
4760   outbuf = tmp___2;   4760   outbuf = tmp___2;
4761   row = (uint32 )0;   4761   row = (uint32 )0;
4762   while (row < imagelength) {   4762   while (row < imagelength) {
4763     s = (tsample_t )0;   4763     s = (tsample_t )0;
4764     while ((int )s < (int )spp) {   4764     while ((int )s < (int )spp) {
4765       tmp___4 = TIFFReadScanline(in, inbuf, row, s);   4765       tmp___4 = TIFFReadScanline(in, inbuf, row, s);
4766       if (tmp___4 < 0) {   4766       if (tmp___4 < 0) {
4767         if (! ignore) {   4767         if (! ignore) {
4768           tmp___3 = TIFFFileName(in);   4768           tmp___3 = TIFFFileName(in);
4769           TIFFError(tmp___3, "Error, can\'t read scanline %lu",   4769           TIFFError(tmp___3, "Error, can\'t read scanline %lu",
4770                     (unsigned long )row);   4770                     (unsigned long )row);
4771           goto bad;   4771           goto bad;
4772         } else {   4772         } else {
4773     4773  
4774         }   4774         }
4775       } else {   4775       } else {
4776     4776  
4777       }   4777       }
4778       inp = (uint8 *)inbuf;   4778       inp = (uint8 *)inbuf;
4779       outp = (uint8 *)outbuf + (int )s;   4779       outp = (uint8 *)outbuf + (int )s;
4780       n = imagewidth;   4780       n = imagewidth;
4781       while (1) {   4781       while (1) {
4782         tmp___6 = n;   4782         tmp___6 = n;
4783         n --;   4783         n --;
4784         if (tmp___6 > 0U) {   4784         if (tmp___6 > 0U) {
4785     4785  
4786         } else {   4786         } else {
4787           break;   4787           break;
4788         }   4788         }
4789         tmp___5 = inp;   4789         tmp___5 = inp;
4790         inp ++;   4790         inp ++;
4791         *outp = *tmp___5;   4791         *outp = *tmp___5;
4792         outp += (int )spp;   4792         outp += (int )spp;
4793       }   4793       }
4794       s = (tsample_t )((int )s + 1);   4794       s = (tsample_t )((int )s + 1);
4795     }   4795     }
4796     tmp___8 = TIFFWriteScanline(out, outbuf, row, (uint16 )0);   4796     tmp___8 = TIFFWriteScanline(out, outbuf, row, (uint16 )0);
4797     if (tmp___8 < 0) {   4797     if (tmp___8 < 0) {
4798       tmp___7 = TIFFFileName(out);   4798       tmp___7 = TIFFFileName(out);
4799       TIFFError(tmp___7, "Error, can\'t write scanline %lu", (unsigned long )row);   4799       TIFFError(tmp___7, "Error, can\'t write scanline %lu", (unsigned long )row);
4800       goto bad;   4800       goto bad;
4801     } else {   4801     } else {
4802     4802  
4803     }   4803     }
4804     row ++;   4804     row ++;
4805   }   4805   }
4806   if (inbuf) {   4806   if (inbuf) {
4807     _TIFFfree(inbuf);   4807     _TIFFfree(inbuf);
4808   } else {   4808   } else {
4809     4809  
4810   }   4810   }
4811   if (outbuf) {   4811   if (outbuf) {
4812     _TIFFfree(outbuf);   4812     _TIFFfree(outbuf);
4813   } else {   4813   } else {
4814     4814  
4815   }   4815   }
4816   return (1);   4816   return (1);
4817   bad:   4817   bad:
4818   if (inbuf) {   4818   if (inbuf) {
4819     _TIFFfree(inbuf);   4819     _TIFFfree(inbuf);
4820   } else {   4820   } else {
4821     4821  
4822   }   4822   }
4823   if (outbuf) {   4823   if (outbuf) {
4824     _TIFFfree(outbuf);   4824     _TIFFfree(outbuf);
4825   } else {   4825   } else {
4826     4826  
4827   }   4827   }
4828   return (0);   4828   return (0);
4829 }   4829 }
4830 }   4830 }
4831 static void cpStripToTile(uint8 *out , uint8 *in , uint32 rows , uint32 cols ,   4831 static void cpStripToTile(uint8 *out , uint8 *in , uint32 rows , uint32 cols ,
4832                           int outskew , int inskew )   4832                           int outskew , int inskew )
4833 {   4833 {
4834   uint32 j ;   4834   uint32 j ;
4835   uint8 *tmp ;   4835   uint8 *tmp ;
4836   uint8 *tmp___0 ;   4836   uint8 *tmp___0 ;
4837   uint32 tmp___1 ;   4837   uint32 tmp___1 ;
4838   uint32 tmp___2 ;   4838   uint32 tmp___2 ;
4839     4839  
4840   {   4840   {
4841   while (1) {   4841   while (1) {
4842     tmp___2 = rows;   4842     tmp___2 = rows;
4843     rows --;   4843     rows --;
4844     if (tmp___2 > 0U) {   4844     if (tmp___2 > 0U) {
4845     4845  
4846     } else {   4846     } else {
4847       break;   4847       break;
4848     }   4848     }
4849     j = cols;   4849     j = cols;
4850     while (1) {   4850     while (1) {
4851       tmp___1 = j;   4851       tmp___1 = j;
4852       j --;   4852       j --;
4853       if (tmp___1 > 0U) {   4853       if (tmp___1 > 0U) {
4854     4854  
4855       } else {   4855       } else {
4856         break;   4856         break;
4857       }   4857       }
4858       tmp = out;   4858       tmp = out;
4859       out ++;   4859       out ++;
4860       tmp___0 = in;   4860       tmp___0 = in;
4861       in ++;   4861       in ++;
4862       *tmp = *tmp___0;   4862       *tmp = *tmp___0;
4863     }   4863     }
4864     out += outskew;   4864     out += outskew;
4865     in += inskew;   4865     in += inskew;
4866   }   4866   }
4867   return;   4867   return;
4868 }   4868 }
4869 }   4869 }
4870 static void cpContigBufToSeparateBuf(uint8 *out , uint8 *in , uint32 rows ,   4870 static void cpContigBufToSeparateBuf(uint8 *out , uint8 *in , uint32 rows ,
4871                                      uint32 cols , int outskew , int inskew ,   4871                                      uint32 cols , int outskew , int inskew ,
4872                                      tsample_t spp , int bytes_per_sample )   4872                                      tsample_t spp , int bytes_per_sample )
4873 {   4873 {
4874   uint32 j ;   4874   uint32 j ;
4875   int n ;   4875   int n ;
4876   uint8 *tmp ;   4876   uint8 *tmp ;
4877   uint8 *tmp___0 ;   4877   uint8 *tmp___0 ;
4878   int tmp___1 ;   4878   int tmp___1 ;
4879   uint32 tmp___2 ;   4879   uint32 tmp___2 ;
4880   uint32 tmp___3 ;   4880   uint32 tmp___3 ;
4881     4881  
4882   {   4882   {
4883   while (1) {   4883   while (1) {
4884     tmp___3 = rows;   4884     tmp___3 = rows;
4885     rows --;   4885     rows --;
4886     if (tmp___3 > 0U) {   4886     if (tmp___3 > 0U) {
4887     4887  
4888     } else {   4888     } else {
4889       break;   4889       break;
4890     }   4890     }
4891     j = cols;   4891     j = cols;
4892     while (1) {   4892     while (1) {
4893       tmp___2 = j;   4893       tmp___2 = j;
4894       j --;   4894       j --;
4895       if (tmp___2 > 0U) {   4895       if (tmp___2 > 0U) {
4896     4896  
4897       } else {   4897       } else {
4898         break;   4898         break;
4899       }   4899       }
4900       n = bytes_per_sample;   4900       n = bytes_per_sample;
4901       while (1) {   4901       while (1) {
4902         tmp___1 = n;   4902         tmp___1 = n;
4903         n --;   4903         n --;
4904         if (tmp___1) {   4904         if (tmp___1) {
4905     4905  
4906         } else {   4906         } else {
4907           break;   4907           break;
4908         }   4908         }
4909         tmp = out;   4909         tmp = out;
4910         out ++;   4910         out ++;
4911         tmp___0 = in;   4911         tmp___0 = in;
4912         in ++;   4912         in ++;
4913         *tmp = *tmp___0;   4913         *tmp = *tmp___0;
4914       }   4914       }
4915       in += ((int )spp - 1) * bytes_per_sample;   4915       in += ((int )spp - 1) * bytes_per_sample;
4916     }   4916     }
4917     out += outskew;   4917     out += outskew;
4918     in += inskew;   4918     in += inskew;
4919   }   4919   }
4920   return;   4920   return;
4921 }   4921 }
4922 }   4922 }
4923 static void cpSeparateBufToContigBuf(uint8 *out , uint8 *in , uint32 rows ,   4923 static void cpSeparateBufToContigBuf(uint8 *out , uint8 *in , uint32 rows ,
4924                                      uint32 cols , int outskew , int inskew ,   4924                                      uint32 cols , int outskew , int inskew ,
4925                                      tsample_t spp , int bytes_per_sample )   4925                                      tsample_t spp , int bytes_per_sample )
4926 {   4926 {
4927   uint32 j ;   4927   uint32 j ;
4928   int n ;   4928   int n ;
4929   uint8 *tmp ;   4929   uint8 *tmp ;
4930   uint8 *tmp___0 ;   4930   uint8 *tmp___0 ;
4931   int tmp___1 ;   4931   int tmp___1 ;
4932   uint32 tmp___2 ;   4932   uint32 tmp___2 ;
4933   uint32 tmp___3 ;   4933   uint32 tmp___3 ;
4934     4934  
4935   {   4935   {
4936   while (1) {   4936   while (1) {
4937     tmp___3 = rows;   4937     tmp___3 = rows;
4938     rows --;   4938     rows --;
4939     if (tmp___3 > 0U) {   4939     if (tmp___3 > 0U) {
4940     4940  
4941     } else {   4941     } else {
4942       break;   4942       break;
4943     }   4943     }
4944     j = cols;   4944     j = cols;
4945     while (1) {   4945     while (1) {
4946       tmp___2 = j;   4946       tmp___2 = j;
4947       j --;   4947       j --;
4948       if (tmp___2 > 0U) {   4948       if (tmp___2 > 0U) {
4949     4949  
4950       } else {   4950       } else {
4951         break;   4951         break;
4952       }   4952       }
4953       n = bytes_per_sample;   4953       n = bytes_per_sample;
4954       while (1) {   4954       while (1) {
4955         tmp___1 = n;   4955         tmp___1 = n;
4956         n --;   4956         n --;
4957         if (tmp___1) {   4957         if (tmp___1) {
4958     4958  
4959         } else {   4959         } else {
4960           break;   4960           break;
4961         }   4961         }
4962         tmp = out;   4962         tmp = out;
4963         out ++;   4963         out ++;
4964         tmp___0 = in;   4964         tmp___0 = in;
4965         in ++;   4965         in ++;
4966         *tmp = *tmp___0;   4966         *tmp = *tmp___0;
4967       }   4967       }
4968       out += ((int )spp - 1) * bytes_per_sample;   4968       out += ((int )spp - 1) * bytes_per_sample;
4969     }   4969     }
4970     out += outskew;   4970     out += outskew;
4971     in += inskew;   4971     in += inskew;
4972   }   4972   }
4973   return;   4973   return;
4974 }   4974 }
4975 }   4975 }
4976 static int cpImage(TIFF *in , TIFF *out ,   4976 static int cpImage(TIFF *in , TIFF *out ,
4977                    int (*fin)(TIFF * , uint8 * , uint32  , uint32  , tsample_t  ) ,   4977                    int (*fin)(TIFF * , uint8 * , uint32  , uint32  , tsample_t  ) ,
4978                    int (*fout)(TIFF * , uint8 * , uint32  , uint32  ,   4978                    int (*fout)(TIFF * , uint8 * , uint32  , uint32  ,
4979                                tsample_t  ) , uint32 imagelength ,   4979                                tsample_t  ) , uint32 imagelength ,
4980                    uint32 imagewidth , tsample_t spp )   4980                    uint32 imagewidth , tsample_t spp )
4981 {   4981 {
4982   int status ;   4982   int status ;
4983   tdata_t buf ;   4983   tdata_t buf ;
4984   tsize_t scanlinesize ;   4984   tsize_t scanlinesize ;
4985   tmsize_t tmp ;   4985   tmsize_t tmp ;
4986   tsize_t bytes ;   4986   tsize_t bytes ;
4987   int tmp___0 ;   4987   int tmp___0 ;
4988   char const   *tmp___1 ;   4988   char const   *tmp___1 ;
4989   char const   *tmp___2 ;   4989   char const   *tmp___2 ;
4990     4990  
4991   {   4991   {
4992   status = 0;   4992   status = 0;
4993   buf = (void *)0;   4993   buf = (void *)0;
4994   tmp = TIFFRasterScanlineSize(in);   4994   tmp = TIFFRasterScanlineSize(in);
4995   scanlinesize = tmp;   4995   scanlinesize = tmp;
4996   bytes = scanlinesize * (tsize_t )imagelength;   4996   bytes = scanlinesize * (tsize_t )imagelength;
4997   if (scanlinesize) {   4997   if (scanlinesize) {
4998     if (imagelength) {   4998     if (imagelength) {
4999       if (bytes / (tsize_t )imagelength == scanlinesize) {   4999       if (bytes / (tsize_t )imagelength == scanlinesize) {
5000         buf = _TIFFmalloc(bytes);   5000         buf = _TIFFmalloc(bytes);
5001         if (buf) {   5001         if (buf) {
5002           tmp___0 = (*fin)(in, (uint8 *)buf, imagelength, imagewidth, spp);   5002           tmp___0 = (*fin)(in, (uint8 *)buf, imagelength, imagewidth, spp);
5003           if (tmp___0) {   5003           if (tmp___0) {
5004             status = (*fout)(out, (uint8 *)buf, imagelength, imagewidth, spp);   5004             status = (*fout)(out, (uint8 *)buf, imagelength, imagewidth, spp);
5005           } else {   5005           } else {
5006     5006  
5007           }   5007           }
5008           _TIFFfree(buf);   5008           _TIFFfree(buf);
5009         } else {   5009         } else {
5010           tmp___1 = TIFFFileName(in);   5010           tmp___1 = TIFFFileName(in);
5011           TIFFError(tmp___1, "Error, can\'t allocate space for image buffer");   5011           TIFFError(tmp___1, "Error, can\'t allocate space for image buffer");
5012         }   5012         }
5013       } else {   5013       } else {
5014         tmp___2 = TIFFFileName(in);   5014         tmp___2 = TIFFFileName(in);
5015         TIFFError(tmp___2, "Error, no space for image buffer");   5015         TIFFError(tmp___2, "Error, no space for image buffer");
5016       }   5016       }
5017     } else {   5017     } else {
5018       tmp___2 = TIFFFileName(in);   5018       tmp___2 = TIFFFileName(in);
5019       TIFFError(tmp___2, "Error, no space for image buffer");   5019       TIFFError(tmp___2, "Error, no space for image buffer");
5020     }   5020     }
5021   } else {   5021   } else {
5022     tmp___2 = TIFFFileName(in);   5022     tmp___2 = TIFFFileName(in);
5023     TIFFError(tmp___2, "Error, no space for image buffer");   5023     TIFFError(tmp___2, "Error, no space for image buffer");
5024   }   5024   }
5025   return (status);   5025   return (status);
5026 }   5026 }
5027 }   5027 }
5028 static int readContigStripsIntoBuffer(TIFF *in , uint8 *buf ,   5028 static int readContigStripsIntoBuffer(TIFF *in , uint8 *buf ,
5029                                       uint32 imagelength , uint32 imagewidth ,   5029                                       uint32 imagelength , uint32 imagewidth ,
5030                                       tsample_t spp )   5030                                       tsample_t spp )
5031 {   5031 {
5032   tsize_t scanlinesize ;   5032   tsize_t scanlinesize ;
5033   tmsize_t tmp ;   5033   tmsize_t tmp ;
5034   uint8 *bufp ;   5034   uint8 *bufp ;
5035   uint32 row ;   5035   uint32 row ;
5036   char const   *tmp___0 ;   5036   char const   *tmp___0 ;
5037   int tmp___1 ;   5037   int tmp___1 ;
5038     5038  
5039   {   5039   {
5040   tmp = TIFFScanlineSize(in);   5040   tmp = TIFFScanlineSize(in);
5041   scanlinesize = tmp;   5041   scanlinesize = tmp;
5042   bufp = buf;   5042   bufp = buf;
5043   row = (uint32 )0;   5043   row = (uint32 )0;
5044   while (row < imagelength) {   5044   while (row < imagelength) {
5045     tmp___1 = TIFFReadScanline(in, (tdata_t )bufp, row, (uint16 )0);   5045     tmp___1 = TIFFReadScanline(in, (tdata_t )bufp, row, (uint16 )0);
5046     if (tmp___1 < 0) {   5046     if (tmp___1 < 0) {
5047       if (! ignore) {   5047       if (! ignore) {
5048         tmp___0 = TIFFFileName(in);   5048         tmp___0 = TIFFFileName(in);
5049         TIFFError(tmp___0, "Error, can\'t read scanline %lu",   5049         TIFFError(tmp___0, "Error, can\'t read scanline %lu",
5050                   (unsigned long )row);   5050                   (unsigned long )row);
5051         return (0);   5051         return (0);
5052       } else {   5052       } else {
5053     5053  
5054       }   5054       }
5055     } else {   5055     } else {
5056     5056  
5057     }   5057     }
5058     bufp += scanlinesize;   5058     bufp += scanlinesize;
5059     row ++;   5059     row ++;
5060   }   5060   }
5061   return (1);   5061   return (1);
5062 }   5062 }
5063 }   5063 }
5064 static int readSeparateStripsIntoBuffer(TIFF *in , uint8 *buf ,   5064 static int readSeparateStripsIntoBuffer(TIFF *in , uint8 *buf ,
5065                                         uint32 imagelength , uint32 imagewidth ,   5065                                         uint32 imagelength , uint32 imagewidth ,
5066                                         tsample_t spp )   5066                                         tsample_t spp )
5067 {   5067 {
5068   int status ;   5068   int status ;
5069   tsize_t scanlinesize ;   5069   tsize_t scanlinesize ;
5070   tmsize_t tmp ;   5070   tmsize_t tmp ;
5071   tdata_t scanline ;   5071   tdata_t scanline ;
5072   uint8 *bufp ;   5072   uint8 *bufp ;
5073   uint32 row ;   5073   uint32 row ;
5074   tsample_t s ;   5074   tsample_t s ;
5075   uint8 *bp ;   5075   uint8 *bp ;
5076   tsize_t n ;   5076   tsize_t n ;
5077   uint8 *sbuf ;   5077   uint8 *sbuf ;
5078   char const   *tmp___0 ;   5078   char const   *tmp___0 ;
5079   int tmp___1 ;   5079   int tmp___1 ;
5080   uint8 *tmp___2 ;   5080   uint8 *tmp___2 ;
5081   tsize_t tmp___3 ;   5081   tsize_t tmp___3 ;
5082     5082  
5083   {   5083   {
5084   status = 1;   5084   status = 1;
5085   tmp = TIFFScanlineSize(in);   5085   tmp = TIFFScanlineSize(in);
5086   scanlinesize = tmp;   5086   scanlinesize = tmp;
5087   if (! scanlinesize) {   5087   if (! scanlinesize) {
5088     return (0);   5088     return (0);
5089   } else {   5089   } else {
5090     5090  
5091   }   5091   }
5092   scanline = _TIFFmalloc(scanlinesize);   5092   scanline = _TIFFmalloc(scanlinesize);
5093   if (scanline) {   5093   if (scanline) {
5094     bufp = buf;   5094     bufp = buf;
5095     row = (uint32 )0;   5095     row = (uint32 )0;
5096     while (row < imagelength) {   5096     while (row < imagelength) {
5097       s = (tsample_t )0;   5097       s = (tsample_t )0;
5098       while ((int )s < (int )spp) {   5098       while ((int )s < (int )spp) {
5099         bp = bufp + (int )s;   5099         bp = bufp + (int )s;
5100         n = scanlinesize;   5100         n = scanlinesize;
5101         sbuf = (uint8 *)scanline;   5101         sbuf = (uint8 *)scanline;
5102         tmp___1 = TIFFReadScanline(in, scanline, row, s);   5102         tmp___1 = TIFFReadScanline(in, scanline, row, s);
5103         if (tmp___1 < 0) {   5103         if (tmp___1 < 0) {
5104           if (! ignore) {   5104           if (! ignore) {
5105             tmp___0 = TIFFFileName(in);   5105             tmp___0 = TIFFFileName(in);
5106             TIFFError(tmp___0, "Error, can\'t read scanline %lu",   5106             TIFFError(tmp___0, "Error, can\'t read scanline %lu",
5107                       (unsigned long )row);   5107                       (unsigned long )row);
5108             status = 0;   5108             status = 0;
5109             goto done;   5109             goto done;
5110           } else {   5110           } else {
5111     5111  
5112           }   5112           }
5113         } else {   5113         } else {
5114     5114  
5115         }   5115         }
5116         while (1) {   5116         while (1) {
5117           tmp___3 = n;   5117           tmp___3 = n;
5118           n --;   5118           n --;
5119           if (tmp___3 > 0L) {   5119           if (tmp___3 > 0L) {
5120     5120  
5121           } else {   5121           } else {
5122             break;   5122             break;
5123           }   5123           }
5124           tmp___2 = sbuf;   5124           tmp___2 = sbuf;
5125           sbuf ++;   5125           sbuf ++;
5126           *bp = *tmp___2;   5126           *bp = *tmp___2;
5127           bp += (int )spp;   5127           bp += (int )spp;
5128         }   5128         }
5129         s = (tsample_t )((int )s + 1);   5129         s = (tsample_t )((int )s + 1);
5130       }   5130       }
5131       bufp += scanlinesize * (tsize_t )spp;   5131       bufp += scanlinesize * (tsize_t )spp;
5132       row ++;   5132       row ++;
5133     }   5133     }
5134   } else {   5134   } else {
5135     5135  
5136   }   5136   }
5137   done:   5137   done:
5138   _TIFFfree(scanline);   5138   _TIFFfree(scanline);
5139   return (status);   5139   return (status);
5140 }   5140 }
5141 }   5141 }
5142 static int readContigTilesIntoBuffer(TIFF *in , uint8 *buf ,   5142 static int readContigTilesIntoBuffer(TIFF *in , uint8 *buf ,
5143                                      uint32 imagelength , uint32 imagewidth ,   5143                                      uint32 imagelength , uint32 imagewidth ,
5144                                      tsample_t spp )   5144                                      tsample_t spp )
5145 {   5145 {
5146   int status ;   5146   int status ;
5147   tdata_t tilebuf ;   5147   tdata_t tilebuf ;
5148   tmsize_t tmp ;   5148   tmsize_t tmp ;
5149   void *tmp___0 ;   5149   void *tmp___0 ;
5150   uint32 imagew ;   5150   uint32 imagew ;
5151   tmsize_t tmp___1 ;   5151   tmsize_t tmp___1 ;
5152   uint32 tilew ;   5152   uint32 tilew ;
5153   tmsize_t tmp___2 ;   5153   tmsize_t tmp___2 ;
5154   int iskew ;   5154   int iskew ;
5155   uint8 *bufp ;   5155   uint8 *bufp ;
5156   uint32 tw ;   5156   uint32 tw ;
5157   uint32 tl ;   5157   uint32 tl ;
5158   uint32 row ;   5158   uint32 row ;
5159   uint32 nrow ;   5159   uint32 nrow ;
5160   uint32 tmp___3 ;   5160   uint32 tmp___3 ;
5161   uint32 colb ;   5161   uint32 colb ;
5162   uint32 col ;   5162   uint32 col ;
5163   char const   *tmp___4 ;   5163   char const   *tmp___4 ;
5164   tmsize_t tmp___5 ;   5164   tmsize_t tmp___5 ;
5165   uint32 width ;   5165   uint32 width ;
5166   uint32 oskew ;   5166   uint32 oskew ;
5167     5167  
5168   {   5168   {
5169   status = 1;   5169   status = 1;
5170   tmp = TIFFTileSize(in);   5170   tmp = TIFFTileSize(in);
5171   tmp___0 = _TIFFmalloc(tmp);   5171   tmp___0 = _TIFFmalloc(tmp);
5172   tilebuf = tmp___0;   5172   tilebuf = tmp___0;
5173   tmp___1 = TIFFScanlineSize(in);   5173   tmp___1 = TIFFScanlineSize(in);
5174   imagew = (uint32 )tmp___1;   5174   imagew = (uint32 )tmp___1;
5175   tmp___2 = TIFFTileRowSize(in);   5175   tmp___2 = TIFFTileRowSize(in);
5176   tilew = (uint32 )tmp___2;   5176   tilew = (uint32 )tmp___2;
5177   iskew = (int )(imagew - tilew);   5177   iskew = (int )(imagew - tilew);
5178   bufp = buf;   5178   bufp = buf;
5179   if ((unsigned int )tilebuf == (unsigned int )((tdata_t )0)) {   5179   if ((unsigned int )tilebuf == (unsigned int )((tdata_t )0)) {
5180     return (0);   5180     return (0);
5181   } else {   5181   } else {
5182     5182  
5183   }   5183   }
5184   TIFFGetField(in, (uint32 )322, & tw);   5184   TIFFGetField(in, (uint32 )322, & tw);
5185   TIFFGetField(in, (uint32 )323, & tl);   5185   TIFFGetField(in, (uint32 )323, & tl);
5186   row = (uint32 )0;   5186   row = (uint32 )0;
5187   while (row < imagelength) {   5187   while (row < imagelength) {
5188     if (row + tl > imagelength) {   5188     if (row + tl > imagelength) {
5189       tmp___3 = imagelength - row;   5189       tmp___3 = imagelength - row;
5190     } else {   5190     } else {
5191       tmp___3 = tl;   5191       tmp___3 = tl;
5192     }   5192     }
5193     nrow = tmp___3;   5193     nrow = tmp___3;
5194     colb = (uint32 )0;   5194     colb = (uint32 )0;
5195     col = (uint32 )0;   5195     col = (uint32 )0;
5196     while (col < imagewidth) {   5196     while (col < imagewidth) {
5197       tmp___5 = TIFFReadTile(in, tilebuf, col, row, (uint32 )0, (uint16 )0);   5197       tmp___5 = TIFFReadTile(in, tilebuf, col, row, (uint32 )0, (uint16 )0);
5198       if (tmp___5 < 0L) {   5198       if (tmp___5 < 0L) {
5199         if (! ignore) {   5199         if (! ignore) {
5200           tmp___4 = TIFFFileName(in);   5200           tmp___4 = TIFFFileName(in);
5201           TIFFError(tmp___4, "Error, can\'t read tile at %lu %lu",   5201           TIFFError(tmp___4, "Error, can\'t read tile at %lu %lu",
5202                     (unsigned long )col, (unsigned long )row);   5202                     (unsigned long )col, (unsigned long )row);
5203           status = 0;   5203           status = 0;
5204           goto done;   5204           goto done;
5205         } else {   5205         } else {
5206     5206  
5207         }   5207         }
5208       } else {   5208       } else {
5209     5209  
5210       }   5210       }
5211       if (colb + tilew > imagew) {   5211       if (colb + tilew > imagew) {
5212         width = imagew - colb;   5212         width = imagew - colb;
5213         oskew = tilew - width;   5213         oskew = tilew - width;
5214         cpStripToTile(bufp + colb, (uint8 *)tilebuf, nrow, width,   5214         cpStripToTile(bufp + colb, (uint8 *)tilebuf, nrow, width,
5215                       (int )(oskew + (uint32 )iskew), (int )oskew);   5215                       (int )(oskew + (uint32 )iskew), (int )oskew);
5216       } else {   5216       } else {
5217         cpStripToTile(bufp + colb, (uint8 *)tilebuf, nrow, tilew, iskew, 0);   5217         cpStripToTile(bufp + colb, (uint8 *)tilebuf, nrow, tilew, iskew, 0);
5218       }   5218       }
5219       colb += tilew;   5219       colb += tilew;
5220       col += tw;   5220       col += tw;
5221     }   5221     }
5222     bufp += imagew * nrow;   5222     bufp += imagew * nrow;
5223     row += tl;   5223     row += tl;
5224   }   5224   }
5225   done:   5225   done:
5226   _TIFFfree(tilebuf);   5226   _TIFFfree(tilebuf);
5227   return (status);   5227   return (status);
5228 }   5228 }
5229 }   5229 }
5230 static int readSeparateTilesIntoBuffer(TIFF *in , uint8 *buf ,   5230 static int readSeparateTilesIntoBuffer(TIFF *in , uint8 *buf ,
5231                                        uint32 imagelength , uint32 imagewidth ,   5231                                        uint32 imagelength , uint32 imagewidth ,
5232                                        tsample_t spp )   5232                                        tsample_t spp )
5233 {   5233 {
5234   int status ;   5234   int status ;
5235   uint32 imagew ;   5235   uint32 imagew ;
5236   tmsize_t tmp ;   5236   tmsize_t tmp ;
5237   uint32 tilew ;   5237   uint32 tilew ;
5238   tmsize_t tmp___0 ;   5238   tmsize_t tmp___0 ;
5239   int iskew ;   5239   int iskew ;
5240   tdata_t tilebuf ;   5240   tdata_t tilebuf ;
5241   tmsize_t tmp___1 ;   5241   tmsize_t tmp___1 ;
5242   void *tmp___2 ;   5242   void *tmp___2 ;
5243   uint8 *bufp ;   5243   uint8 *bufp ;
5244   uint32 tw ;   5244   uint32 tw ;
5245   uint32 tl ;   5245   uint32 tl ;
5246   uint32 row ;   5246   uint32 row ;
5247   uint16 bps ;   5247   uint16 bps ;
5248   uint16 bytes_per_sample ;   5248   uint16 bytes_per_sample ;
5249   uint32 nrow ;   5249   uint32 nrow ;
5250   uint32 tmp___3 ;   5250   uint32 tmp___3 ;
5251   uint32 colb ;   5251   uint32 colb ;
5252   uint32 col ;   5252   uint32 col ;
5253   tsample_t s ;   5253   tsample_t s ;
5254   char const   *tmp___4 ;   5254   char const   *tmp___4 ;
5255   tmsize_t tmp___5 ;   5255   tmsize_t tmp___5 ;
5256   uint32 width ;   5256   uint32 width ;
5257   int oskew ;   5257   int oskew ;
5258     5258  
5259   {   5259   {
5260   status = 1;   5260   status = 1;
5261   tmp = TIFFRasterScanlineSize(in);   5261   tmp = TIFFRasterScanlineSize(in);
5262   imagew = (uint32 )tmp;   5262   imagew = (uint32 )tmp;
5263   tmp___0 = TIFFTileRowSize(in);   5263   tmp___0 = TIFFTileRowSize(in);
5264   tilew = (uint32 )tmp___0;   5264   tilew = (uint32 )tmp___0;
5265   iskew = (int )(imagew - tilew * (uint32 )spp);   5265   iskew = (int )(imagew - tilew * (uint32 )spp);
5266   tmp___1 = TIFFTileSize(in);   5266   tmp___1 = TIFFTileSize(in);
5267   tmp___2 = _TIFFmalloc(tmp___1);   5267   tmp___2 = _TIFFmalloc(tmp___1);
5268   tilebuf = tmp___2;   5268   tilebuf = tmp___2;
5269   bufp = buf;   5269   bufp = buf;
5270   if ((unsigned int )tilebuf == (unsigned int )((tdata_t )0)) {   5270   if ((unsigned int )tilebuf == (unsigned int )((tdata_t )0)) {
5271     return (0);   5271     return (0);
5272   } else {   5272   } else {
5273     5273  
5274   }   5274   }
5275   TIFFGetField(in, (uint32 )322, & tw);   5275   TIFFGetField(in, (uint32 )322, & tw);
5276   TIFFGetField(in, (uint32 )323, & tl);   5276   TIFFGetField(in, (uint32 )323, & tl);
5277   TIFFGetField(in, (uint32 )258, & bps);   5277   TIFFGetField(in, (uint32 )258, & bps);
5278   if ((int )bps % 8 == 0) {   5278   if ((int )bps % 8 == 0) {
5279     5279  
5280   } else {   5280   } else {
5281     __assert_fail("bps % 8 == 0", "tiffcp.c", 1285U,   5281     __assert_fail("bps % 8 == 0", "tiffcp.c", 1285U,
5282                   "readSeparateTilesIntoBuffer");   5282                   "readSeparateTilesIntoBuffer");
5283   }   5283   }
5284   bytes_per_sample = (uint16 )((int )bps / 8);   5284   bytes_per_sample = (uint16 )((int )bps / 8);
5285   row = (uint32 )0;   5285   row = (uint32 )0;
5286   while (row < imagelength) {   5286   while (row < imagelength) {
5287     if (row + tl > imagelength) {   5287     if (row + tl > imagelength) {
5288       tmp___3 = imagelength - row;   5288       tmp___3 = imagelength - row;
5289     } else {   5289     } else {
5290       tmp___3 = tl;   5290       tmp___3 = tl;
5291     }   5291     }
5292     nrow = tmp___3;   5292     nrow = tmp___3;
5293     colb = (uint32 )0;   5293     colb = (uint32 )0;
5294     col = (uint32 )0;   5294     col = (uint32 )0;
5295     while (col < imagewidth) {   5295     while (col < imagewidth) {
5296       s = (tsample_t )0;   5296       s = (tsample_t )0;
5297       while ((int )s < (int )spp) {   5297       while ((int )s < (int )spp) {
5298         tmp___5 = TIFFReadTile(in, tilebuf, col, row, (uint32 )0, s);   5298         tmp___5 = TIFFReadTile(in, tilebuf, col, row, (uint32 )0, s);
5299         if (tmp___5 < 0L) {   5299         if (tmp___5 < 0L) {
5300           if (! ignore) {   5300           if (! ignore) {
5301             tmp___4 = TIFFFileName(in);   5301             tmp___4 = TIFFFileName(in);
5302             TIFFError(tmp___4, "Error, can\'t read tile at %lu %lu, sample %lu",   5302             TIFFError(tmp___4, "Error, can\'t read tile at %lu %lu, sample %lu",
5303                       (unsigned long )col, (unsigned long )row,   5303                       (unsigned long )col, (unsigned long )row,
5304                       (unsigned long )s);   5304                       (unsigned long )s);
5305             status = 0;   5305             status = 0;
5306             goto done;   5306             goto done;
5307           } else {   5307           } else {
5308     5308  
5309           }   5309           }
5310         } else {   5310         } else {
5311     5311  
5312         }   5312         }
5313         if (colb + tilew * (uint32 )spp > imagew) {   5313         if (colb + tilew * (uint32 )spp > imagew) {
5314           width = imagew - colb;   5314           width = imagew - colb;
5315           oskew = (int )(tilew * (uint32 )spp - width);   5315           oskew = (int )(tilew * (uint32 )spp - width);
5316           cpSeparateBufToContigBuf((bufp + colb) + (int )s * (int )bytes_per_sample,   5316           cpSeparateBufToContigBuf((bufp + colb) + (int )s * (int )bytes_per_sample,
5317                                    (uint8 *)tilebuf, nrow,   5317                                    (uint8 *)tilebuf, nrow,
5318                                    width / (uint32 )((int )spp * (int )bytes_per_sample),   5318                                    width / (uint32 )((int )spp * (int )bytes_per_sample),
5319                                    oskew + iskew, oskew / (int )spp, spp,   5319                                    oskew + iskew, oskew / (int )spp, spp,
5320                                    (int )bytes_per_sample);   5320                                    (int )bytes_per_sample);
5321         } else {   5321         } else {
5322           cpSeparateBufToContigBuf((bufp + colb) + (int )s * (int )bytes_per_sample,   5322           cpSeparateBufToContigBuf((bufp + colb) + (int )s * (int )bytes_per_sample,
5323                                    (uint8 *)tilebuf, nrow, tw, iskew, 0, spp,   5323                                    (uint8 *)tilebuf, nrow, tw, iskew, 0, spp,
5324                                    (int )bytes_per_sample);   5324                                    (int )bytes_per_sample);
5325         }   5325         }
5326         s = (tsample_t )((int )s + 1);   5326         s = (tsample_t )((int )s + 1);
5327       }   5327       }
5328       colb += tilew * (uint32 )spp;   5328       colb += tilew * (uint32 )spp;
5329       col += tw;   5329       col += tw;
5330     }   5330     }
5331     bufp += imagew * nrow;   5331     bufp += imagew * nrow;
5332     row += tl;   5332     row += tl;
5333   }   5333   }
5334   done:   5334   done:
5335   _TIFFfree(tilebuf);   5335   _TIFFfree(tilebuf);
5336   return (status);   5336   return (status);
5337 }   5337 }
5338 }   5338 }
5339 static int writeBufferToContigStrips(TIFF *out , uint8 *buf ,   5339 static int writeBufferToContigStrips(TIFF *out , uint8 *buf ,
5340                                      uint32 imagelength , uint32 imagewidth ,   5340                                      uint32 imagelength , uint32 imagewidth ,
5341                                      tsample_t spp )   5341                                      tsample_t spp )
5342 {   5342 {
5343   uint32 row ;   5343   uint32 row ;
5344   uint32 rowsperstrip___0 ;   5344   uint32 rowsperstrip___0 ;
5345   tstrip_t strip ;   5345   tstrip_t strip ;
5346   uint32 nrows ;   5346   uint32 nrows ;
5347   uint32 tmp ;   5347   uint32 tmp ;
5348   tsize_t stripsize ;   5348   tsize_t stripsize ;
5349   tmsize_t tmp___0 ;   5349   tmsize_t tmp___0 ;
5350   char const   *tmp___1 ;   5350   char const   *tmp___1 ;
5351   tstrip_t tmp___2 ;   5351   tstrip_t tmp___2 ;
5352   tmsize_t tmp___3 ;   5352   tmsize_t tmp___3 ;
5353     5353  
5354   {   5354   {
5355   strip = (tstrip_t )0;   5355   strip = (tstrip_t )0;
5356   TIFFGetFieldDefaulted(out, (uint32 )278, & rowsperstrip___0);   5356   TIFFGetFieldDefaulted(out, (uint32 )278, & rowsperstrip___0);
5357   row = (uint32 )0;   5357   row = (uint32 )0;
5358   while (row < imagelength) {   5358   while (row < imagelength) {
5359     if (row + rowsperstrip___0 > imagelength) {   5359     if (row + rowsperstrip___0 > imagelength) {
5360       tmp = imagelength - row;   5360       tmp = imagelength - row;
5361     } else {   5361     } else {
5362       tmp = rowsperstrip___0;   5362       tmp = rowsperstrip___0;
5363     }   5363     }
5364     nrows = tmp;   5364     nrows = tmp;
5365     tmp___0 = TIFFVStripSize(out, nrows);   5365     tmp___0 = TIFFVStripSize(out, nrows);
5366     stripsize = tmp___0;   5366     stripsize = tmp___0;
5367     tmp___2 = strip;   5367     tmp___2 = strip;
5368     strip ++;   5368     strip ++;
5369     tmp___3 = TIFFWriteEncodedStrip(out, tmp___2, (void *)buf, stripsize);   5369     tmp___3 = TIFFWriteEncodedStrip(out, tmp___2, (void *)buf, stripsize);
5370     if (tmp___3 < 0L) {   5370     if (tmp___3 < 0L) {
5371       tmp___1 = TIFFFileName(out);   5371       tmp___1 = TIFFFileName(out);
5372       TIFFError(tmp___1, "Error, can\'t write strip %u", strip - 1U);   5372       TIFFError(tmp___1, "Error, can\'t write strip %u", strip - 1U);
5373       return (0);   5373       return (0);
5374     } else {   5374     } else {
5375     5375  
5376     }   5376     }
5377     buf += stripsize;   5377     buf += stripsize;
5378     row += rowsperstrip___0;   5378     row += rowsperstrip___0;
5379   }   5379   }
5380   return (1);   5380   return (1);
5381 }   5381 }
5382 }   5382 }
5383 static int writeBufferToSeparateStrips(TIFF *out , uint8 *buf ,   5383 static int writeBufferToSeparateStrips(TIFF *out , uint8 *buf ,
5384                                        uint32 imagelength , uint32 imagewidth ,   5384                                        uint32 imagelength , uint32 imagewidth ,
5385                                        tsample_t spp )   5385                                        tsample_t spp )
5386 {   5386 {
5387   uint32 rowsize ;   5387   uint32 rowsize ;
5388   uint32 rowsperstrip___0 ;   5388   uint32 rowsperstrip___0 ;
5389   tdata_t obuf ;   5389   tdata_t obuf ;
5390   tmsize_t tmp ;   5390   tmsize_t tmp ;
5391   void *tmp___0 ;   5391   void *tmp___0 ;
5392   tstrip_t strip ;   5392   tstrip_t strip ;
5393   tsample_t s ;   5393   tsample_t s ;
5394   uint32 row ;   5394   uint32 row ;
5395   uint32 nrows ;   5395   uint32 nrows ;
5396   uint32 tmp___1 ;   5396   uint32 tmp___1 ;
5397   tsize_t stripsize ;   5397   tsize_t stripsize ;
5398   tmsize_t tmp___2 ;   5398   tmsize_t tmp___2 ;
5399   char const   *tmp___3 ;   5399   char const   *tmp___3 ;
5400   tstrip_t tmp___4 ;   5400   tstrip_t tmp___4 ;
5401   tmsize_t tmp___5 ;   5401   tmsize_t tmp___5 ;
5402     5402  
5403   {   5403   {
5404   rowsize = imagewidth * (uint32 )spp;   5404   rowsize = imagewidth * (uint32 )spp;
5405   tmp = TIFFStripSize(out);   5405   tmp = TIFFStripSize(out);
5406   tmp___0 = _TIFFmalloc(tmp);   5406   tmp___0 = _TIFFmalloc(tmp);
5407   obuf = tmp___0;   5407   obuf = tmp___0;
5408   strip = (tstrip_t )0;   5408   strip = (tstrip_t )0;
5409   if ((unsigned int )obuf == (unsigned int )((void *)0)) {   5409   if ((unsigned int )obuf == (unsigned int )((void *)0)) {
5410     return (0);   5410     return (0);
5411   } else {   5411   } else {
5412     5412  
5413   }   5413   }
5414   TIFFGetFieldDefaulted(out, (uint32 )278, & rowsperstrip___0);   5414   TIFFGetFieldDefaulted(out, (uint32 )278, & rowsperstrip___0);
5415   s = (tsample_t )0;   5415   s = (tsample_t )0;
5416   while ((int )s < (int )spp) {   5416   while ((int )s < (int )spp) {
5417     row = (uint32 )0;   5417     row = (uint32 )0;
5418     while (row < imagelength) {   5418     while (row < imagelength) {
5419       if (row + rowsperstrip___0 > imagelength) {   5419       if (row + rowsperstrip___0 > imagelength) {
5420         tmp___1 = imagelength - row;   5420         tmp___1 = imagelength - row;
5421       } else {   5421       } else {
5422         tmp___1 = rowsperstrip___0;   5422         tmp___1 = rowsperstrip___0;
5423       }   5423       }
5424       nrows = tmp___1;   5424       nrows = tmp___1;
5425       tmp___2 = TIFFVStripSize(out, nrows);   5425       tmp___2 = TIFFVStripSize(out, nrows);
5426       stripsize = tmp___2;   5426       stripsize = tmp___2;
5427       cpContigBufToSeparateBuf((uint8 *)obuf, (buf + row * rowsize) + (int )s,   5427       cpContigBufToSeparateBuf((uint8 *)obuf, (buf + row * rowsize) + (int )s,
5428                                nrows, imagewidth, 0, 0, spp, 1);   5428                                nrows, imagewidth, 0, 0, spp, 1);
5429       tmp___4 = strip;   5429       tmp___4 = strip;
5430       strip ++;   5430       strip ++;
5431       tmp___5 = TIFFWriteEncodedStrip(out, tmp___4, obuf, stripsize);   5431       tmp___5 = TIFFWriteEncodedStrip(out, tmp___4, obuf, stripsize);
5432       if (tmp___5 < 0L) {   5432       if (tmp___5 < 0L) {
5433         tmp___3 = TIFFFileName(out);   5433         tmp___3 = TIFFFileName(out);
5434         TIFFError(tmp___3, "Error, can\'t write strip %u", strip - 1U);   5434         TIFFError(tmp___3, "Error, can\'t write strip %u", strip - 1U);
5435         _TIFFfree(obuf);   5435         _TIFFfree(obuf);
5436         return (0);   5436         return (0);
5437       } else {   5437       } else {
5438     5438  
5439       }   5439       }
5440       row += rowsperstrip___0;   5440       row += rowsperstrip___0;
5441     }   5441     }
5442     s = (tsample_t )((int )s + 1);   5442     s = (tsample_t )((int )s + 1);
5443   }   5443   }
5444   _TIFFfree(obuf);   5444   _TIFFfree(obuf);
5445   return (1);   5445   return (1);
5446 }   5446 }
5447 }   5447 }
5448 static int writeBufferToContigTiles(TIFF *out , uint8 *buf ,   5448 static int writeBufferToContigTiles(TIFF *out , uint8 *buf ,
5449                                     uint32 imagelength , uint32 imagewidth ,   5449                                     uint32 imagelength , uint32 imagewidth ,
5450                                     tsample_t spp )   5450                                     tsample_t spp )
5451 {   5451 {
5452   uint32 imagew ;   5452   uint32 imagew ;
5453   tmsize_t tmp ;   5453   tmsize_t tmp ;
5454   uint32 tilew ;   5454   uint32 tilew ;
5455   tmsize_t tmp___0 ;   5455   tmsize_t tmp___0 ;
5456   int iskew ;   5456   int iskew ;
5457   tdata_t obuf ;   5457   tdata_t obuf ;
5458   tmsize_t tmp___1 ;   5458   tmsize_t tmp___1 ;
5459   void *tmp___2 ;   5459   void *tmp___2 ;
5460   uint8 *bufp ;   5460   uint8 *bufp ;
5461   uint32 tl ;   5461   uint32 tl ;
5462   uint32 tw ;   5462   uint32 tw ;
5463   uint32 row ;   5463   uint32 row ;
5464   uint32 nrow ;   5464   uint32 nrow ;
5465   uint32 tmp___3 ;   5465   uint32 tmp___3 ;
5466   uint32 colb ;   5466   uint32 colb ;
5467   uint32 col ;   5467   uint32 col ;
5468   uint32 width ;   5468   uint32 width ;
5469   int oskew ;   5469   int oskew ;
5470   char const   *tmp___4 ;   5470   char const   *tmp___4 ;
5471   tmsize_t tmp___5 ;   5471   tmsize_t tmp___5 ;
5472     5472  
5473   {   5473   {
5474   tmp = TIFFScanlineSize(out);   5474   tmp = TIFFScanlineSize(out);
5475   imagew = (uint32 )tmp;   5475   imagew = (uint32 )tmp;
5476   tmp___0 = TIFFTileRowSize(out);   5476   tmp___0 = TIFFTileRowSize(out);
5477   tilew = (uint32 )tmp___0;   5477   tilew = (uint32 )tmp___0;
5478   iskew = (int )(imagew - tilew);   5478   iskew = (int )(imagew - tilew);
5479   tmp___1 = TIFFTileSize(out);   5479   tmp___1 = TIFFTileSize(out);
5480   tmp___2 = _TIFFmalloc(tmp___1);   5480   tmp___2 = _TIFFmalloc(tmp___1);
5481   obuf = tmp___2;   5481   obuf = tmp___2;
5482   bufp = buf;   5482   bufp = buf;
5483   if ((unsigned int )obuf == (unsigned int )((void *)0)) {   5483   if ((unsigned int )obuf == (unsigned int )((void *)0)) {
5484     return (0);   5484     return (0);
5485   } else {   5485   } else {
5486     5486  
5487   }   5487   }
5488   TIFFGetField(out, (uint32 )323, & tl);   5488   TIFFGetField(out, (uint32 )323, & tl);
5489   TIFFGetField(out, (uint32 )322, & tw);   5489   TIFFGetField(out, (uint32 )322, & tw);
5490   row = (uint32 )0;   5490   row = (uint32 )0;
5491   while (row < imagelength) {   5491   while (row < imagelength) {
5492     if (row + tl > imagelength) {   5492     if (row + tl > imagelength) {
5493       tmp___3 = imagelength - row;   5493       tmp___3 = imagelength - row;
5494     } else {   5494     } else {
5495       tmp___3 = tl;   5495       tmp___3 = tl;
5496     }   5496     }
5497     nrow = tmp___3;   5497     nrow = tmp___3;
5498     colb = (uint32 )0;   5498     colb = (uint32 )0;
5499     col = (uint32 )0;   5499     col = (uint32 )0;
5500     while (col < imagewidth) {   5500     while (col < imagewidth) {
5501       if (colb + tilew > imagew) {   5501       if (colb + tilew > imagew) {
5502         width = imagew - colb;   5502         width = imagew - colb;
5503         oskew = (int )(tilew - width);   5503         oskew = (int )(tilew - width);
5504         cpStripToTile((uint8 *)obuf, bufp + colb, nrow, width, oskew,   5504         cpStripToTile((uint8 *)obuf, bufp + colb, nrow, width, oskew,
5505                       oskew + iskew);   5505                       oskew + iskew);
5506       } else {   5506       } else {
5507         cpStripToTile((uint8 *)obuf, bufp + colb, nrow, tilew, 0, iskew);   5507         cpStripToTile((uint8 *)obuf, bufp + colb, nrow, tilew, 0, iskew);
5508       }   5508       }
5509       tmp___5 = TIFFWriteTile(out, obuf, col, row, (uint32 )0, (uint16 )0);   5509       tmp___5 = TIFFWriteTile(out, obuf, col, row, (uint32 )0, (uint16 )0);
5510       if (tmp___5 < 0L) {   5510       if (tmp___5 < 0L) {
5511         tmp___4 = TIFFFileName(out);   5511         tmp___4 = TIFFFileName(out);
5512         TIFFError(tmp___4, "Error, can\'t write tile at %lu %lu",   5512         TIFFError(tmp___4, "Error, can\'t write tile at %lu %lu",
5513                   (unsigned long )col, (unsigned long )row);   5513                   (unsigned long )col, (unsigned long )row);
5514         _TIFFfree(obuf);   5514         _TIFFfree(obuf);
5515         return (0);   5515         return (0);
5516       } else {   5516       } else {
5517     5517  
5518       }   5518       }
5519       colb += tilew;   5519       colb += tilew;
5520       col += tw;   5520       col += tw;
5521     }   5521     }
5522     bufp += nrow * imagew;   5522     bufp += nrow * imagew;
5523     row += tilelength;   5523     row += tilelength;
5524   }   5524   }
5525   _TIFFfree(obuf);   5525   _TIFFfree(obuf);
5526   return (1);   5526   return (1);
5527 }   5527 }
5528 }   5528 }
5529 static int writeBufferToSeparateTiles(TIFF *out , uint8 *buf ,   5529 static int writeBufferToSeparateTiles(TIFF *out , uint8 *buf ,
5530                                       uint32 imagelength , uint32 imagewidth ,   5530                                       uint32 imagelength , uint32 imagewidth ,
5531                                       tsample_t spp )   5531                                       tsample_t spp )
5532 {   5532 {
5533   uint32 imagew ;   5533   uint32 imagew ;
5534   tmsize_t tmp ;   5534   tmsize_t tmp ;
5535   tsize_t tilew ;   5535   tsize_t tilew ;
5536   tmsize_t tmp___0 ;   5536   tmsize_t tmp___0 ;
5537   uint32 iimagew ;   5537   uint32 iimagew ;
5538   tmsize_t tmp___1 ;   5538   tmsize_t tmp___1 ;
5539   int iskew ;   5539   int iskew ;
5540   tdata_t obuf ;   5540   tdata_t obuf ;
5541   tmsize_t tmp___2 ;   5541   tmsize_t tmp___2 ;
5542   void *tmp___3 ;   5542   void *tmp___3 ;
5543   uint8 *bufp ;   5543   uint8 *bufp ;
5544   uint32 tl ;   5544   uint32 tl ;
5545   uint32 tw ;   5545   uint32 tw ;
5546   uint32 row ;   5546   uint32 row ;
5547   uint16 bps ;   5547   uint16 bps ;
5548   uint16 bytes_per_sample ;   5548   uint16 bytes_per_sample ;
5549   uint32 nrow ;   5549   uint32 nrow ;
5550   uint32 tmp___4 ;   5550   uint32 tmp___4 ;
5551   uint32 colb ;   5551   uint32 colb ;
5552   uint32 col ;   5552   uint32 col ;
5553   tsample_t s ;   5553   tsample_t s ;
5554   uint32 width ;   5554   uint32 width ;
5555   int oskew ;   5555   int oskew ;
5556   char const   *tmp___5 ;   5556   char const   *tmp___5 ;
5557   tmsize_t tmp___6 ;   5557   tmsize_t tmp___6 ;
5558     5558  
5559   {   5559   {
5560   tmp = TIFFScanlineSize(out);   5560   tmp = TIFFScanlineSize(out);
5561   imagew = (uint32 )tmp;   5561   imagew = (uint32 )tmp;
5562   tmp___0 = TIFFTileRowSize(out);   5562   tmp___0 = TIFFTileRowSize(out);
5563   tilew = tmp___0;   5563   tilew = tmp___0;
5564   tmp___1 = TIFFRasterScanlineSize(out);   5564   tmp___1 = TIFFRasterScanlineSize(out);
5565   iimagew = (uint32 )tmp___1;   5565   iimagew = (uint32 )tmp___1;
5566   iskew = (int )((unsigned long )iimagew - (unsigned long )(tilew * (tsize_t )spp));   5566   iskew = (int )((unsigned long )iimagew - (unsigned long )(tilew * (tsize_t )spp));
5567   tmp___2 = TIFFTileSize(out);   5567   tmp___2 = TIFFTileSize(out);
5568   tmp___3 = _TIFFmalloc(tmp___2);   5568   tmp___3 = _TIFFmalloc(tmp___2);
5569   obuf = tmp___3;   5569   obuf = tmp___3;
5570   bufp = buf;   5570   bufp = buf;
5571   if ((unsigned int )obuf == (unsigned int )((void *)0)) {   5571   if ((unsigned int )obuf == (unsigned int )((void *)0)) {
5572     return (0);   5572     return (0);
5573   } else {   5573   } else {
5574     5574  
5575   }   5575   }
5576   TIFFGetField(out, (uint32 )323, & tl);   5576   TIFFGetField(out, (uint32 )323, & tl);
5577   TIFFGetField(out, (uint32 )322, & tw);   5577   TIFFGetField(out, (uint32 )322, & tw);
5578   TIFFGetField(out, (uint32 )258, & bps);   5578   TIFFGetField(out, (uint32 )258, & bps);
5579   if ((int )bps % 8 == 0) {   5579   if ((int )bps % 8 == 0) {
5580     5580  
5581   } else {   5581   } else {
5582     __assert_fail("bps % 8 == 0", "tiffcp.c", 1460U,   5582     __assert_fail("bps % 8 == 0", "tiffcp.c", 1460U,
5583                   "writeBufferToSeparateTiles");   5583                   "writeBufferToSeparateTiles");
5584   }   5584   }
5585   bytes_per_sample = (uint16 )((int )bps / 8);   5585   bytes_per_sample = (uint16 )((int )bps / 8);
5586   row = (uint32 )0;   5586   row = (uint32 )0;
5587   while (row < imagelength) {   5587   while (row < imagelength) {
5588     if (row + tl > imagelength) {   5588     if (row + tl > imagelength) {
5589       tmp___4 = imagelength - row;   5589       tmp___4 = imagelength - row;
5590     } else {   5590     } else {
5591       tmp___4 = tl;   5591       tmp___4 = tl;
5592     }   5592     }
5593     nrow = tmp___4;   5593     nrow = tmp___4;
5594     colb = (uint32 )0;   5594     colb = (uint32 )0;
5595     col = (uint32 )0;   5595     col = (uint32 )0;
5596     while (col < imagewidth) {   5596     while (col < imagewidth) {
5597       s = (tsample_t )0;   5597       s = (tsample_t )0;
5598       while ((int )s < (int )spp) {   5598       while ((int )s < (int )spp) {
5599         if ((unsigned long )colb + (unsigned long )tilew > (unsigned long )imagew) {   5599         if ((unsigned long )colb + (unsigned long )tilew > (unsigned long )imagew) {
5600           width = imagew - colb;   5600           width = imagew - colb;
5601           oskew = (int )((unsigned long )tilew - (unsigned long )width);   5601           oskew = (int )((unsigned long )tilew - (unsigned long )width);
5602           cpContigBufToSeparateBuf((uint8 *)obuf,   5602           cpContigBufToSeparateBuf((uint8 *)obuf,
5603                                    (bufp + colb * (uint32 )spp) + (int )s, nrow,   5603                                    (bufp + colb * (uint32 )spp) + (int )s, nrow,
5604                                    width / (uint32 )bytes_per_sample, oskew,   5604                                    width / (uint32 )bytes_per_sample, oskew,
5605                                    oskew * (int )spp + iskew, spp,   5605                                    oskew * (int )spp + iskew, spp,
5606                                    (int )bytes_per_sample);   5606                                    (int )bytes_per_sample);
5607         } else {   5607         } else {
5608           cpContigBufToSeparateBuf((uint8 *)obuf,   5608           cpContigBufToSeparateBuf((uint8 *)obuf,
5609                                    (bufp + colb * (uint32 )spp) + (int )s, nrow,   5609                                    (bufp + colb * (uint32 )spp) + (int )s, nrow,
5610                                    tilewidth, 0, iskew, spp,   5610                                    tilewidth, 0, iskew, spp,
5611                                    (int )bytes_per_sample);   5611                                    (int )bytes_per_sample);
5612         }   5612         }
5613         tmp___6 = TIFFWriteTile(out, obuf, col, row, (uint32 )0, s);   5613         tmp___6 = TIFFWriteTile(out, obuf, col, row, (uint32 )0, s);
5614         if (tmp___6 < 0L) {   5614         if (tmp___6 < 0L) {
5615           tmp___5 = TIFFFileName(out);   5615           tmp___5 = TIFFFileName(out);
5616           TIFFError(tmp___5, "Error, can\'t write tile at %lu %lu sample %lu",   5616           TIFFError(tmp___5, "Error, can\'t write tile at %lu %lu sample %lu",
5617                     (unsigned long )col, (unsigned long )row, (unsigned long )s);   5617                     (unsigned long )col, (unsigned long )row, (unsigned long )s);
5618           _TIFFfree(obuf);   5618           _TIFFfree(obuf);
5619           return (0);   5619           return (0);
5620         } else {   5620         } else {
5621     5621  
5622         }   5622         }
5623         s = (tsample_t )((int )s + 1);   5623         s = (tsample_t )((int )s + 1);
5624       }   5624       }
5625       colb = (uint32 )((unsigned long )colb + (unsigned long )tilew);   5625       colb = (uint32 )((unsigned long )colb + (unsigned long )tilew);
5626       col += tw;   5626       col += tw;
5627     }   5627     }
5628     bufp += nrow * iimagew;   5628     bufp += nrow * iimagew;
5629     row += tl;   5629     row += tl;
5630   }   5630   }
5631   _TIFFfree(obuf);   5631   _TIFFfree(obuf);
5632   return (1);   5632   return (1);
5633 }   5633 }
5634 }   5634 }
5635 static int cpContigStrips2ContigTiles(TIFF *in , TIFF *out ,   5635 static int cpContigStrips2ContigTiles(TIFF *in , TIFF *out ,
5636                                       uint32 imagelength , uint32 imagewidth ,   5636                                       uint32 imagelength , uint32 imagewidth ,
5637                                       tsample_t spp )   5637                                       tsample_t spp )
5638 {   5638 {
5639   int tmp ;   5639   int tmp ;
5640     5640  
5641   {   5641   {
5642   tmp = cpImage(in, out, & readContigStripsIntoBuffer,   5642   tmp = cpImage(in, out, & readContigStripsIntoBuffer,
5643                 & writeBufferToContigTiles, imagelength, imagewidth, spp);   5643                 & writeBufferToContigTiles, imagelength, imagewidth, spp);
5644   return (tmp);   5644   return (tmp);
5645 }   5645 }
5646 }   5646 }
5647 static int cpContigStrips2SeparateTiles(TIFF *in , TIFF *out ,   5647 static int cpContigStrips2SeparateTiles(TIFF *in , TIFF *out ,
5648                                         uint32 imagelength , uint32 imagewidth ,   5648                                         uint32 imagelength , uint32 imagewidth ,
5649                                         tsample_t spp )   5649                                         tsample_t spp )
5650 {   5650 {
5651   int tmp ;   5651   int tmp ;
5652     5652  
5653   {   5653   {
5654   tmp = cpImage(in, out, & readContigStripsIntoBuffer,   5654   tmp = cpImage(in, out, & readContigStripsIntoBuffer,
5655                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);   5655                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);
5656   return (tmp);   5656   return (tmp);
5657 }   5657 }
5658 }   5658 }
5659 static int cpSeparateStrips2ContigTiles(TIFF *in , TIFF *out ,   5659 static int cpSeparateStrips2ContigTiles(TIFF *in , TIFF *out ,
5660                                         uint32 imagelength , uint32 imagewidth ,   5660                                         uint32 imagelength , uint32 imagewidth ,
5661                                         tsample_t spp )   5661                                         tsample_t spp )
5662 {   5662 {
5663   int tmp ;   5663   int tmp ;
5664     5664  
5665   {   5665   {
5666   tmp = cpImage(in, out, & readSeparateStripsIntoBuffer,   5666   tmp = cpImage(in, out, & readSeparateStripsIntoBuffer,
5667                 & writeBufferToContigTiles, imagelength, imagewidth, spp);   5667                 & writeBufferToContigTiles, imagelength, imagewidth, spp);
5668   return (tmp);   5668   return (tmp);
5669 }   5669 }
5670 }   5670 }
5671 static int cpSeparateStrips2SeparateTiles(TIFF *in , TIFF *out ,   5671 static int cpSeparateStrips2SeparateTiles(TIFF *in , TIFF *out ,
5672                                           uint32 imagelength ,   5672                                           uint32 imagelength ,
5673                                           uint32 imagewidth , tsample_t spp )   5673                                           uint32 imagewidth , tsample_t spp )
5674 {   5674 {
5675   int tmp ;   5675   int tmp ;
5676     5676  
5677   {   5677   {
5678   tmp = cpImage(in, out, & readSeparateStripsIntoBuffer,   5678   tmp = cpImage(in, out, & readSeparateStripsIntoBuffer,
5679                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);   5679                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);
5680   return (tmp);   5680   return (tmp);
5681 }   5681 }
5682 }   5682 }
5683 static int cpContigTiles2ContigTiles(TIFF *in , TIFF *out , uint32 imagelength ,   5683 static int cpContigTiles2ContigTiles(TIFF *in , TIFF *out , uint32 imagelength ,
5684                                      uint32 imagewidth , tsample_t spp )   5684                                      uint32 imagewidth , tsample_t spp )
5685 {   5685 {
5686   int tmp ;   5686   int tmp ;
5687     5687  
5688   {   5688   {
5689   tmp = cpImage(in, out, & readContigTilesIntoBuffer,   5689   tmp = cpImage(in, out, & readContigTilesIntoBuffer,
5690                 & writeBufferToContigTiles, imagelength, imagewidth, spp);   5690                 & writeBufferToContigTiles, imagelength, imagewidth, spp);
5691   return (tmp);   5691   return (tmp);
5692 }   5692 }
5693 }   5693 }
5694 static int cpContigTiles2SeparateTiles(TIFF *in , TIFF *out ,   5694 static int cpContigTiles2SeparateTiles(TIFF *in , TIFF *out ,
5695                                        uint32 imagelength , uint32 imagewidth ,   5695                                        uint32 imagelength , uint32 imagewidth ,
5696                                        tsample_t spp )   5696                                        tsample_t spp )
5697 {   5697 {
5698   int tmp ;   5698   int tmp ;
5699     5699  
5700   {   5700   {
5701   tmp = cpImage(in, out, & readContigTilesIntoBuffer,   5701   tmp = cpImage(in, out, & readContigTilesIntoBuffer,
5702                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);   5702                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);
5703   return (tmp);   5703   return (tmp);
5704 }   5704 }
5705 }   5705 }
5706 static int cpSeparateTiles2ContigTiles(TIFF *in , TIFF *out ,   5706 static int cpSeparateTiles2ContigTiles(TIFF *in , TIFF *out ,
5707                                        uint32 imagelength , uint32 imagewidth ,   5707                                        uint32 imagelength , uint32 imagewidth ,
5708                                        tsample_t spp )   5708                                        tsample_t spp )
5709 {   5709 {
5710   int tmp ;   5710   int tmp ;
5711     5711  
5712   {   5712   {
5713   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,   5713   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,
5714                 & writeBufferToContigTiles, imagelength, imagewidth, spp);   5714                 & writeBufferToContigTiles, imagelength, imagewidth, spp);
5715   return (tmp);   5715   return (tmp);
5716 }   5716 }
5717 }   5717 }
5718 static int cpSeparateTiles2SeparateTiles(TIFF *in , TIFF *out ,   5718 static int cpSeparateTiles2SeparateTiles(TIFF *in , TIFF *out ,
5719                                          uint32 imagelength ,   5719                                          uint32 imagelength ,
5720                                          uint32 imagewidth , tsample_t spp )   5720                                          uint32 imagewidth , tsample_t spp )
5721 {   5721 {
5722   int tmp ;   5722   int tmp ;
5723     5723  
5724   {   5724   {
5725   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,   5725   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,
5726                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);   5726                 & writeBufferToSeparateTiles, imagelength, imagewidth, spp);
5727   return (tmp);   5727   return (tmp);
5728 }   5728 }
5729 }   5729 }
5730 static int cpContigTiles2ContigStrips(TIFF *in , TIFF *out ,   5730 static int cpContigTiles2ContigStrips(TIFF *in , TIFF *out ,
5731                                       uint32 imagelength , uint32 imagewidth ,   5731                                       uint32 imagelength , uint32 imagewidth ,
5732                                       tsample_t spp )   5732                                       tsample_t spp )
5733 {   5733 {
5734   int tmp ;   5734   int tmp ;
5735     5735  
5736   {   5736   {
5737   tmp = cpImage(in, out, & readContigTilesIntoBuffer,   5737   tmp = cpImage(in, out, & readContigTilesIntoBuffer,
5738                 & writeBufferToContigStrips, imagelength, imagewidth, spp);   5738                 & writeBufferToContigStrips, imagelength, imagewidth, spp);
5739   return (tmp);   5739   return (tmp);
5740 }   5740 }
5741 }   5741 }
5742 static int cpContigTiles2SeparateStrips(TIFF *in , TIFF *out ,   5742 static int cpContigTiles2SeparateStrips(TIFF *in , TIFF *out ,
5743                                         uint32 imagelength , uint32 imagewidth ,   5743                                         uint32 imagelength , uint32 imagewidth ,
5744                                         tsample_t spp )   5744                                         tsample_t spp )
5745 {   5745 {
5746   int tmp ;   5746   int tmp ;
5747     5747  
5748   {   5748   {
5749   tmp = cpImage(in, out, & readContigTilesIntoBuffer,   5749   tmp = cpImage(in, out, & readContigTilesIntoBuffer,
5750                 & writeBufferToSeparateStrips, imagelength, imagewidth, spp);   5750                 & writeBufferToSeparateStrips, imagelength, imagewidth, spp);
5751   return (tmp);   5751   return (tmp);
5752 }   5752 }
5753 }   5753 }
5754 static int cpSeparateTiles2ContigStrips(TIFF *in , TIFF *out ,   5754 static int cpSeparateTiles2ContigStrips(TIFF *in , TIFF *out ,
5755                                         uint32 imagelength , uint32 imagewidth ,   5755                                         uint32 imagelength , uint32 imagewidth ,
5756                                         tsample_t spp )   5756                                         tsample_t spp )
5757 {   5757 {
5758   int tmp ;   5758   int tmp ;
5759     5759  
5760   {   5760   {
5761   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,   5761   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,
5762                 & writeBufferToContigStrips, imagelength, imagewidth, spp);   5762                 & writeBufferToContigStrips, imagelength, imagewidth, spp);
5763   return (tmp);   5763   return (tmp);
5764 }   5764 }
5765 }   5765 }
5766 static int cpSeparateTiles2SeparateStrips(TIFF *in , TIFF *out ,   5766 static int cpSeparateTiles2SeparateStrips(TIFF *in , TIFF *out ,
5767                                           uint32 imagelength ,   5767                                           uint32 imagelength ,
5768                                           uint32 imagewidth , tsample_t spp )   5768                                           uint32 imagewidth , tsample_t spp )
5769 {   5769 {
5770   int tmp ;   5770   int tmp ;
5771     5771  
5772   {   5772   {
5773   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,   5773   tmp = cpImage(in, out, & readSeparateTilesIntoBuffer,
5774                 & writeBufferToSeparateStrips, imagelength, imagewidth, spp);   5774                 & writeBufferToSeparateStrips, imagelength, imagewidth, spp);
5775   return (tmp);   5775   return (tmp);
5776 }   5776 }
5777 }   5777 }
5778 static copyFunc pickCopyFunc(TIFF *in , TIFF *out , uint16 bitspersample ,   5778 static copyFunc pickCopyFunc(TIFF *in , TIFF *out , uint16 bitspersample ,
5779                              uint16 samplesperpixel )   5779                              uint16 samplesperpixel )
5780 {   5780 {
5781   uint16 shortv ;   5781   uint16 shortv ;
5782   uint32 w ;   5782   uint32 w ;
5783   uint32 l ;   5783   uint32 l ;
5784   uint32 tw ;   5784   uint32 tw ;
5785   uint32 tl ;   5785   uint32 tl ;
5786   int bychunk ;   5786   int bychunk ;
5787   char const   *tmp ;   5787   char const   *tmp ;
5788   uint32 irps ;   5788   uint32 irps ;
5789   int tmp___0 ;   5789   int tmp___0 ;
5790   char const   *tmp___1 ;   5790   char const   *tmp___1 ;
5791   int tmp___2 ;   5791   int tmp___2 ;
5792   int tmp___3 ;   5792   int tmp___3 ;
5793   int tmp___4 ;   5793   int tmp___4 ;
5794   int tmp___5 ;   5794   int tmp___5 ;
5795   int tmp___6 ;   5795   int tmp___6 ;
5796   int tmp___7 ;   5796   int tmp___7 ;
5797   int tmp___8 ;   5797   int tmp___8 ;
5798   int tmp___9 ;   5798   int tmp___9 ;
5799   int tmp___10 ;   5799   int tmp___10 ;
5800   int (*tmp___11)(TIFF *in , TIFF *out , uint32 imagelength ,   5800   int (*tmp___11)(TIFF *in , TIFF *out , uint32 imagelength ,
5801                   uint32 imagewidth , tsample_t spp ) ;   5801                   uint32 imagewidth , tsample_t spp ) ;
5802   char const   *tmp___12 ;   5802   char const   *tmp___12 ;
5803     5803  
5804   {   5804   {
5805   TIFFGetField(in, (uint32 )284, & shortv);   5805   TIFFGetField(in, (uint32 )284, & shortv);
5806   if ((int )shortv != (int )config) {   5806   if ((int )shortv != (int )config) {
5807     if ((int )bitspersample != 8) {   5807     if ((int )bitspersample != 8) {
5808       if ((int )samplesperpixel > 1) {   5808       if ((int )samplesperpixel > 1) {
5809         tmp = TIFFFileName(in);   5809         tmp = TIFFFileName(in);
5810         fprintf((FILE */* __restrict  */)stderr,   5810         fprintf((FILE */* __restrict  */)stderr,
5811                 (char const   */* __restrict  */)"%s: Cannot handle different planar configuration w/ bits/sample != 8\n",   5811                 (char const   */* __restrict  */)"%s: Cannot handle different planar configuration w/ bits/sample != 8\n",
5812                 tmp);   5812                 tmp);
5813         return ((copyFunc )((void *)0));   5813         return ((copyFunc )((void *)0));
5814       } else {   5814       } else {
5815     5815  
5816       }   5816       }
5817     } else {   5817     } else {
5818     5818  
5819     }   5819     }
5820   } else {   5820   } else {
5821     5821  
5822   }   5822   }
5823   TIFFGetField(in, (uint32 )256, & w);   5823   TIFFGetField(in, (uint32 )256, & w);
5824   TIFFGetField(in, (uint32 )257, & l);   5824   TIFFGetField(in, (uint32 )257, & l);
5825   tmp___7 = TIFFIsTiled(out);   5825   tmp___7 = TIFFIsTiled(out);
5826   if (tmp___7) {   5826   if (tmp___7) {
5827     goto _L;   5827     goto _L;
5828   } else {   5828   } else {
5829     tmp___8 = TIFFIsTiled(in);   5829     tmp___8 = TIFFIsTiled(in);
5830     if (tmp___8) {   5830     if (tmp___8) {
5831       _L: /* CIL Label */   5831       _L: /* CIL Label */
5832       if (bias) {   5832       if (bias) {
5833         tmp___1 = TIFFFileName(in);   5833         tmp___1 = TIFFFileName(in);
5834         fprintf((FILE */* __restrict  */)stderr,   5834         fprintf((FILE */* __restrict  */)stderr,
5835                 (char const   */* __restrict  */)"%s: Cannot handle tiled configuration w/bias image\n",   5835                 (char const   */* __restrict  */)"%s: Cannot handle tiled configuration w/bias image\n",
5836                 tmp___1);   5836                 tmp___1);
5837         return ((copyFunc )((void *)0));   5837         return ((copyFunc )((void *)0));
5838       } else {   5838       } else {
5839     5839  
5840       }   5840       }
5841       tmp___6 = TIFFIsTiled(out);   5841       tmp___6 = TIFFIsTiled(out);
5842       if (tmp___6) {   5842       if (tmp___6) {
5843         tmp___2 = TIFFGetField(in, (uint32 )322, & tw);   5843         tmp___2 = TIFFGetField(in, (uint32 )322, & tw);
5844         if (tmp___2) {   5844         if (tmp___2) {
5845     5845  
5846         } else {   5846         } else {
5847           tw = w;   5847           tw = w;
5848         }   5848         }
5849         tmp___3 = TIFFGetField(in, (uint32 )323, & tl);   5849         tmp___3 = TIFFGetField(in, (uint32 )323, & tl);
5850         if (tmp___3) {   5850         if (tmp___3) {
5851     5851  
5852         } else {   5852         } else {
5853           tl = l;   5853           tl = l;
5854         }   5854         }
5855         if (tw == tilewidth) {   5855         if (tw == tilewidth) {
5856           if (tl == tilelength) {   5856           if (tl == tilelength) {
5857             tmp___4 = 1;   5857             tmp___4 = 1;
5858           } else {   5858           } else {
5859             tmp___4 = 0;   5859             tmp___4 = 0;
5860           }   5860           }
5861         } else {   5861         } else {
5862           tmp___4 = 0;   5862           tmp___4 = 0;
5863         }   5863         }
5864         bychunk = tmp___4;   5864         bychunk = tmp___4;
5865       } else {   5865       } else {
5866         TIFFGetField(in, (uint32 )322, & tw);   5866         TIFFGetField(in, (uint32 )322, & tw);
5867         TIFFGetField(in, (uint32 )323, & tl);   5867         TIFFGetField(in, (uint32 )323, & tl);
5868         if (tw == w) {   5868         if (tw == w) {
5869           if (tl == rowsperstrip) {   5869           if (tl == rowsperstrip) {
5870             tmp___5 = 1;   5870             tmp___5 = 1;
5871           } else {   5871           } else {
5872             tmp___5 = 0;   5872             tmp___5 = 0;
5873           }   5873           }
5874         } else {   5874         } else {
5875           tmp___5 = 0;   5875           tmp___5 = 0;
5876         }   5876         }
5877         bychunk = tmp___5;   5877         bychunk = tmp___5;
5878       }   5878       }
5879     } else {   5879     } else {
5880       irps = (uint32 )-1L;   5880       irps = (uint32 )-1L;
5881       TIFFGetField(in, (uint32 )278, & irps);   5881       TIFFGetField(in, (uint32 )278, & irps);
5882       if (! bias) {   5882       if (! bias) {
5883         if (rowsperstrip == irps) {   5883         if (rowsperstrip == irps) {
5884           tmp___0 = 1;   5884           tmp___0 = 1;
5885         } else {   5885         } else {
5886           tmp___0 = 0;   5886           tmp___0 = 0;
5887         }   5887         }
5888       } else {   5888       } else {
5889         tmp___0 = 0;   5889         tmp___0 = 0;
5890       }   5890       }
5891       bychunk = tmp___0;   5891       bychunk = tmp___0;
5892     }   5892     }
5893   }   5893   }
5894   tmp___9 = TIFFIsTiled(in);   5894   tmp___9 = TIFFIsTiled(in);
5895   tmp___10 = TIFFIsTiled(out);   5895   tmp___10 = TIFFIsTiled(out);
5896   switch ((long )((((((int )shortv << 11) | ((int )config << 3)) | (tmp___9 << 2)) | (tmp___10 << 1)) | bychunk)) {   5896   switch ((long )((((((int )shortv << 11) | ((int )config << 3)) | (tmp___9 << 2)) | (tmp___10 << 1)) | bychunk)) {
5897   case (long )((((1 << 11) | (1 << 3)) | (1 << 1)) | 1):   5897   case (long )((((1 << 11) | (1 << 3)) | (1 << 1)) | 1):
5898   case (long )(((1 << 11) | (1 << 3)) | (1 << 1)):   5898   case (long )(((1 << 11) | (1 << 3)) | (1 << 1)):
5899   return (& cpContigStrips2ContigTiles);   5899   return (& cpContigStrips2ContigTiles);
5900   case (long )((((1 << 11) | (2 << 3)) | (1 << 1)) | 1):   5900   case (long )((((1 << 11) | (2 << 3)) | (1 << 1)) | 1):
5901   case (long )(((1 << 11) | (2 << 3)) | (1 << 1)):   5901   case (long )(((1 << 11) | (2 << 3)) | (1 << 1)):
5902   return (& cpContigStrips2SeparateTiles);   5902   return (& cpContigStrips2SeparateTiles);
5903   case (long )((((2 << 11) | (1 << 3)) | (1 << 1)) | 1):   5903   case (long )((((2 << 11) | (1 << 3)) | (1 << 1)) | 1):
5904   case (long )(((2 << 11) | (1 << 3)) | (1 << 1)):   5904   case (long )(((2 << 11) | (1 << 3)) | (1 << 1)):
5905   return (& cpSeparateStrips2ContigTiles);   5905   return (& cpSeparateStrips2ContigTiles);
5906   case (long )((((2 << 11) | (2 << 3)) | (1 << 1)) | 1):   5906   case (long )((((2 << 11) | (2 << 3)) | (1 << 1)) | 1):
5907   case (long )(((2 << 11) | (2 << 3)) | (1 << 1)):   5907   case (long )(((2 << 11) | (2 << 3)) | (1 << 1)):
5908   return (& cpSeparateStrips2SeparateTiles);   5908   return (& cpSeparateStrips2SeparateTiles);
5909   case (long )(((((1 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)) | 1):   5909   case (long )(((((1 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)) | 1):
5910   case (long )((((1 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)):   5910   case (long )((((1 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)):
5911   return (& cpContigTiles2ContigTiles);   5911   return (& cpContigTiles2ContigTiles);
5912   case (long )(((((1 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)) | 1):   5912   case (long )(((((1 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)) | 1):
5913   case (long )((((1 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)):   5913   case (long )((((1 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)):
5914   return (& cpContigTiles2SeparateTiles);   5914   return (& cpContigTiles2SeparateTiles);
5915   case (long )(((((2 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)) | 1):   5915   case (long )(((((2 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)) | 1):
5916   case (long )((((2 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)):   5916   case (long )((((2 << 11) | (1 << 3)) | (1 << 2)) | (1 << 1)):
5917   return (& cpSeparateTiles2ContigTiles);   5917   return (& cpSeparateTiles2ContigTiles);
5918   case (long )(((((2 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)) | 1):   5918   case (long )(((((2 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)) | 1):
5919   case (long )((((2 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)):   5919   case (long )((((2 << 11) | (2 << 3)) | (1 << 2)) | (1 << 1)):
5920   return (& cpSeparateTiles2SeparateTiles);   5920   return (& cpSeparateTiles2SeparateTiles);
5921   case (long )((((1 << 11) | (1 << 3)) | (1 << 2)) | 1):   5921   case (long )((((1 << 11) | (1 << 3)) | (1 << 2)) | 1):
5922   case (long )(((1 << 11) | (1 << 3)) | (1 << 2)):   5922   case (long )(((1 << 11) | (1 << 3)) | (1 << 2)):
5923   return (& cpContigTiles2ContigStrips);   5923   return (& cpContigTiles2ContigStrips);
5924   case (long )((((1 << 11) | (2 << 3)) | (1 << 2)) | 1):   5924   case (long )((((1 << 11) | (2 << 3)) | (1 << 2)) | 1):
5925   case (long )(((1 << 11) | (2 << 3)) | (1 << 2)):   5925   case (long )(((1 << 11) | (2 << 3)) | (1 << 2)):
5926   return (& cpContigTiles2SeparateStrips);   5926   return (& cpContigTiles2SeparateStrips);
5927   case (long )((((2 << 11) | (1 << 3)) | (1 << 2)) | 1):   5927   case (long )((((2 << 11) | (1 << 3)) | (1 << 2)) | 1):
5928   case (long )(((2 << 11) | (1 << 3)) | (1 << 2)):   5928   case (long )(((2 << 11) | (1 << 3)) | (1 << 2)):
5929   return (& cpSeparateTiles2ContigStrips);   5929   return (& cpSeparateTiles2ContigStrips);
5930   case (long )((((2 << 11) | (2 << 3)) | (1 << 2)) | 1):   5930   case (long )((((2 << 11) | (2 << 3)) | (1 << 2)) | 1):
5931   case (long )(((2 << 11) | (2 << 3)) | (1 << 2)):   5931   case (long )(((2 << 11) | (2 << 3)) | (1 << 2)):
5932   return (& cpSeparateTiles2SeparateStrips);   5932   return (& cpSeparateTiles2SeparateStrips);
5933   case (long )((1 << 11) | (1 << 3)):   5933   case (long )((1 << 11) | (1 << 3)):
5934   if (bias) {   5934   if (bias) {
5935     tmp___11 = & cpBiasedContig2Contig;   5935     tmp___11 = & cpBiasedContig2Contig;
5936   } else {   5936   } else {
5937     tmp___11 = & cpContig2ContigByRow;   5937     tmp___11 = & cpContig2ContigByRow;
5938   }   5938   }
5939   return (tmp___11);   5939   return (tmp___11);
5940   case (long )(((1 << 11) | (1 << 3)) | 1):   5940   case (long )(((1 << 11) | (1 << 3)) | 1):
5941   return (& cpDecodedStrips);   5941   return (& cpDecodedStrips);
5942   case (long )(((1 << 11) | (2 << 3)) | 1):   5942   case (long )(((1 << 11) | (2 << 3)) | 1):
5943   case (long )((1 << 11) | (2 << 3)):   5943   case (long )((1 << 11) | (2 << 3)):
5944   return (& cpContig2SeparateByRow);   5944   return (& cpContig2SeparateByRow);
5945   case (long )(((2 << 11) | (1 << 3)) | 1):   5945   case (long )(((2 << 11) | (1 << 3)) | 1):
5946   case (long )((2 << 11) | (1 << 3)):   5946   case (long )((2 << 11) | (1 << 3)):
5947   return (& cpSeparate2ContigByRow);   5947   return (& cpSeparate2ContigByRow);
5948   case (long )(((2 << 11) | (2 << 3)) | 1):   5948   case (long )(((2 << 11) | (2 << 3)) | 1):
5949   case (long )((2 << 11) | (2 << 3)):   5949   case (long )((2 << 11) | (2 << 3)):
5950   return (& cpSeparate2SeparateByRow);   5950   return (& cpSeparate2SeparateByRow);
5951   }   5951   }
5952   tmp___12 = TIFFFileName(in);   5952   tmp___12 = TIFFFileName(in);
5953   fprintf((FILE */* __restrict  */)stderr,   5953   fprintf((FILE */* __restrict  */)stderr,
5954           (char const   */* __restrict  */)"tiffcp: %s: Don\'t know how to copy/convert image.\n",   5954           (char const   */* __restrict  */)"tiffcp: %s: Don\'t know how to copy/convert image.\n",
5955           tmp___12);   5955           tmp___12);
5956   return ((copyFunc )((void *)0));   5956   return ((copyFunc )((void *)0));
5957 }   5957 }
5958 }   5958 }